ng2-file-upload icon indicating copy to clipboard operation
ng2-file-upload copied to clipboard

[Bug on IE]: (onFileSelected) event is getting triggered twice in Internet Explorer

Open Hussein-Dahir opened this issue 6 years ago • 2 comments

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 !

Hussein-Dahir avatar Dec 25 '18 11:12 Hussein-Dahir

I fixed it by checking native files count: image

Checking uploader.queue length in IE isn't actual (I don't know why)

egorgrushin avatar Jan 25 '19 13:01 egorgrushin

can you please let me know, how you fixed this issue. I am having the same issue with the ng2FileSelect with IE 11

githubakash007 avatar Nov 05 '20 07:11 githubakash007