We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

When i upload a file, i get two files

When i use your getting started example from https://ej2.syncfusion.com/aspnetcore/documentation/uploader/getting-started/ within a form like this





and i upload one file, i get a second one (duplicate).

The reason is, that the control duplicates the hidden input[type=file] with the file in it. Tested with Firefox 72.0.1 and Chrome 79.0.3945.117.

Can you please fix this?

Edit: I created a bug report here: https://www.syncfusion.com/feedback/11237/when-i-upload-a-file-i-get-two-files

Edit2: Lol. My first edit changed my code snippet to a raw html. I think thats an other bug.
  • Im Wörterbuch speichern
    • Keine Wortliste für Englisch -> Deutsch...
    • Eine neue Wortliste erstellen...
  • Kopieren

3 Replies

PM Ponmani Murugaiyan Syncfusion Team January 13, 2020 01:04 PM UTC

Hi Thomas,

We have checked your query. Unfortunately we could not reproduce the reported issue. We have made sample and in the Success event , we are getting only one file. Please refer the attached sample and get back to us if you need any further assist on this.

    var asyncSettings = new Syncfusion.EJ2.Inputs.UploaderAsyncSettings { SaveUrl = "https://aspnetmvc.syncfusion.com/services/api/uploadbox/Save", RemoveUrl = "https://aspnetmvc.syncfusion.com/services/api/uploadbox/Remove" }; 
    <ejs-uploader id="uploadFiles" asyncSettings="@asyncSettings" success="onUploadSuccess" failure="onUploadFailure" autoUpload="false"></ejs-uploader> 
    function onUploadSuccess(args) { 
        if (args.operation === 'upload') { 
    function onUploadFailure(args) { 
Ponmani M 

TS Thomas Schinagl January 15, 2020 11:43 PM UTC

I dont use async upload. Here some screenshots: 

PO Prince Oliver Syncfusion Team January 17, 2020 12:01 PM UTC

Hi Thomas, 

Thank you for your update. 

We could replicate the reported issue in our end. We are considering this as a defect in our end. The fix will be included in our upcoming 2019 volume 4 SP1 release which is expected in the end of January 2020. You can track the status of the report through the following feedback link:  

Until then you can use the following work around to resolve the issue. 

<form method="post" enctype="multipart/form-data"> 
    <ejs-uploader id="UploadFiles" autoUpload="false" multiple="false" fileListRendering="onListRendering" ></ejs-uploader> 
    <br /><br /> 
    <input type="submit" /> 
    function onListRendering(args) { 
        if (window.browserDetails.info.name == "msie" || window.browserDetails.info.name == "edge") {  
        } else { 
            this.element.value = ""; 


Live Chat Icon For mobile
Up arrow icon