ng2-file-upload
ng2-file-upload copied to clipboard
[Bug on IE]: (onFileSelected) event is getting triggered twice in Internet Explorer
I have a some code like the following:
<input (onFileSelected)="uploadSelectedFiles()" type="file" ng2FileSelect [uploader]="uploader" multiple />
I tried to put a
console.log('In uploadSelectedFiles')
statement in uploadSelectedFiles() function, and found that whenever I select a file in IE, the function is getting called twice (console.log statement logs the same content twice).
This issue is only occur in Internet Explorer, tested it on Chrome & Edge and everything was working fine.
I use IE version 11.472.17134.0
please help !
I fixed it by checking native files count:
Checking uploader.queue length in IE isn't actual (I don't know why)
can you please let me know, how you fixed this issue. I am having the same issue with the ng2FileSelect with IE 11