Issue while clearing files list

Hello,


So I got this piece of code where i cancel uploading if it doesn't fit my requirements 

(selected)="onSelectedItem($event)"



If file extension doesn't fit my allowed extensions I cancel action with args.cancel cause i don't want to enter "uploading" method. But even if i cancel action the uploader still imports the file in "files" array (this.uploader.files (picture below) ) and cause of this (I think) when i'm uploading the same image again onSelectedItem doesn't fire anymore, unless i upload the different one. I tried clearing with clearAll() method or reseting files array, but that did not work.






1 Reply

KR Karthik Ravichandran Syncfusion Team July 2, 2018 01:39 PM UTC

Hi Domantas, 
 
Thanks for contacting Syncfusion support. 
 
We have checked your query. We would like to inform you that, we have provided the cancel option in selected event to design own template for file list. We will resolve this issue by clearing the upload’s value in clearAll method. The fix for the issue will be included in our upcoming weakly release. Please be patient until then. 
 
Regards, 
Karthik R 


Loader.
Up arrow icon