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

Open
opened 2018-12-25 11:30:34 +00:00 by Hussein-Dahir · 2 comments
Hussein-Dahir commented 2018-12-25 11:30:34 +00:00 (Migrated from github.com)

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 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 !
egorgrushin commented 2019-01-25 13:35:52 +00:00 (Migrated from github.com)

I fixed it by checking native files count:
image

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

I fixed it by checking native files count: ![image](https://user-images.githubusercontent.com/6255315/51748987-29953f00-20bf-11e9-8ee6-08df65e94ba3.png) Checking uploader.queue length in IE isn't actual (I don't know why)
githubakash007 commented 2020-11-05 07:35:54 +00:00 (Migrated from github.com)

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

can you please let me know, how you fixed this issue. I am having the same issue with the ng2FileSelect with IE 11
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#1069