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

Clearing the files from the uploader controller in code

I am using an uploader in a bootstrap modal.  During a session the user might open the modal several times.  I would like to be able to clear the files listed in the uploader after I have finished processing (I can see them in ul.e-upload-files when I snoop the html with the debugger, but I am not sure that deleting them is a good idea).  I don't see any API in the doc that might do this.  

How do I delete files from the uploader once my processing is complete.

note: I am using a single file chunked uploader.  Once the file has been uploaded, the user can submit a form to 'finalize' the creation of the upload.  After that, I hide the modal and it is ready to re-use next time.

Thanks in advance.


2 Replies

SE sellinger October 5, 2018 12:32 AM

HI.  I looked in the JS2 Javascript doc and saw the clearAll() method on the uploader.  I had not realized I could find useful documentation there that was valid for aspnetcore.  This issue is solved:

                    const uploader = document.getElementById("uploadFiles").ej2_instances[0];
                    if (uploader !== null && uploader.clearAll !== null && typeof (uploader.clearAll) !== "undefined") {



PO Prince Oliver Syncfusion Team October 5, 2018 07:27 AM

Hi Sellinger, 

Thank you for contacting Syncfusion support. 

We are glad to know that your issue is resolved. We have documented all the available properties, methods, events. You can find them in the following links:  

Please let us know if you require any further assistance on this. 


Live Chat Icon For mobile
Up arrow icon