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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

When i upload a file, i get two files

Thread ID:





150546 Jan 10,2020 01:57 PM UTC Jan 17,2020 12:01 PM UTC ASP.NET Core - EJ 2 3
Tags: File Upload
Thomas Schinagl
Asked On January 10, 2020 02:06 PM UTC

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

Ponmani Murugaiyan [Syncfusion]
Replied On 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 

Thomas Schinagl
Replied On January 15, 2020 11:43 PM UTC

I dont use async upload. Here some screenshots: 

Prince Oliver [Syncfusion]
Replied On 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 = ""; 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon