how to clear ejs-uploader after uploading file.

Hi team,

if we upload file from ejs-uploader how shoild i clear ejs-uploader or browser button content.




Thanks With Regards

Sunil


1 Reply

UD UdhayaKumar Duraisamy Syncfusion Team June 13, 2022 02:56 PM UTC

Hi sunil,


We can Clear all the file entries from the list that can be uploaded files or added to the upload queue using clearAll method. By calling clearAll method in a button click event we can be able to achieve the requested requirement. Please refer to the below code snippet and sample for reference.


 onClear() {

    this.uploadObj.clearAll();

    console.log('Cleared');

  }

 



Sample : https://stackblitz.com/edit/angular-o8hyyg?file=app.component.html,app.component.ts


Regards,

Udhaya Kumar D.


Loader.
Up arrow icon