-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onFileSelect not called in IE8 #281
Comments
I've updated angular-file-upload to 1.6.1 After a bit of research, it seems that this is due to the location of the div containing the flash object: it was previously right after the input in the DOM, it is now the first-child of body. The positionning is all wrong and the dimensions too: previously:
now:
Also, when clicking on the flash object element after I located it, I can select a file but then I get:
// in IE8:
So both fail but on a different property. |
Could you test the demo page and see if it works on IE8-9? Then you would have a better idea of why it is not working in your case. |
Also you can try wrapping your input element in another div which is relatively positioned. |
on the demo page, I get "Error: Impossible d'effectuer l'opération à cause de l'erreur suivante c00c023e. " in IE9 and "Error: Erreur non spécifiée." in IE8 when tryin gto select a file |
Wrapping the input in a div with position:relative doesn't change what's happening |
Make sure that you clear the browser cache and you have flash installed on your browser. |
What is your operating system? |
All the previous demo versions you linked works fine on both version of IE. Only the current one on http://angular-file-upload.appspot.com/ doesn't. |
Flash player version is 12.0.0 |
version 1.6.0 and 1.6.1 use a different version of FileAPI. It might be a bug with FileAPI on win7. I have IE8 on Win XP and all demos are working fine. |
Thanks for the quick reply, I hope you'll figure out what's going wrong rapidly. One point sounds odd though : I don't see the operating system version altering the positioning of the flash object in the DOM. :§ |
Can you post here the console log up to the point you get the error in IE8. |
on which version ? |
Can you verify if this works on your IE8? |
yes, it does (both IE8 and 9) |
Just to confirm http://1-5-1.angular-file-upload.appspot.com/ works both for IE8-9 right? |
correct |
Could you try to upload using "Click here to select file" button which is a normal Thanks |
you mean for those test to be made with the latest dist folder on the master branch, right ? |
Yea the demo page on win7 IE8-9. Version 1.6.x If you are testing it on your local code in version 1.6.2 you can also try this option
to see if that fixes anything. This option would make it look like the older version 1.5.x |
The updated demo page with 1.6.2 works fine in IE8 and 9. But on my project, I still get no call to onFilesUpload in IE8, even though everything works fine in IE9 and the Object is positioning corectly when I hover the input. |
I've been digging around and managed to narrow down the non-working case: When you have jQuery loaded (I use 1.11.1), the fileList declaration in the change handler returns undefined if you are using IE8. fileList = evt.__files_ || evt.target.files; // both undefined I was able to reproduce it on your demo page too. I hope this can help you fix the issue. |
It is fixed at version 1.6.3. |
Thanks for the quick fix! |
I eventually managed to have working uploads in IE9, but in IE8 onFileSelect is never called.
Here's some context data:
// console log with debug activated
// in IE9 (working)
// in IE8 (not working) [this IE8 is really IE9 in IE8 compat mode]
AngularJS v1.2.20
angular-file-upload @Version 1.5.1
So the Flash.event.select is calle din both cases but in IE8 the onFileSelect is never triggered.
The text was updated successfully, but these errors were encountered: