Regarding ejs-uploader

Hello,

I have query regarding ejs-uploader.
How to clear uploaded file from ejs-uploader ?
File is still attach after post query.

Thank you
Milan

1 Reply 1 reply marked as answer

SP Sureshkumar P Syncfusion Team July 14, 2020 01:46 PM UTC

Hi Milan, 
 
Greetings from Syncfusion support. 
 
Based on your shared information, we suspect that you want to remove the selected file list after upload the files. We suggest you use the showFileList property value as false to achieve your requirement.  
 
Please find the code example. 
[app.component.html] 
<ejs-uploader #defaultupload id='defaultfileupload' [asyncSettings]='path' [dropArea]='dropElement' 
    (removing)='onFileRemove($event)' [showFileList]='showFileList'></ejs-uploader> 
 
[app.component.ts] 
 
public showFileList = false; 
 
 
We have created the sample based on your requirement. please find the sample here: https://stackblitz.com/edit/angular-9wgaws-fpwuix?file=app.component.ts  
 
To know more about showFileList property, please refer the API documentation link: https://ej2.syncfusion.com/angular/documentation/api/uploader#showfilelist  
 
Regards, 
Sureshkumar P 
 


Marked as answer
Loader.
Up arrow icon