-
Notifications
You must be signed in to change notification settings - Fork 333
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
Insert Media (IE11): Selecting more than 1 image to upload, results in "Empty file upload result" errors #787
Comments
I have replicated this issue on IE10 (10.0.9200.16618) will look into resolving this issue The error I am receiving on developer tools console is SCRIPTS: Access is denied. tiny_mce_gzip.php, line 1 character 112881 |
May be a similar issue |
Another link which may shed some light on this http://stackoverflow.com/questions/14316240/is-the-formdata-object-available-in-internet-explorer-10 |
IE10 does not allow uploading files via iframes looking at the network tab on Chrome the javascript is uploading the files by opening separate iframe to upload each file |
IE10 has sandbox restrictions for iframes will try assigning a sandbox attribute to the iframe |
This seems to be fixed on the plugin demo: http://blueimp.github.io/jQuery-File-Upload/ So its just a matter of upgrading the library. Unfortunately that's not an easy process, because we've overwritten a few methods that changed significantly. I've made a start for this two weeks ago, Kirk maybe you want to pick this up? chillu/silverstripe-framework@6d76261 Alternatively, we could try to track down the specific fix in the lib and backport it, but given the amount of IE10 related issues on their tracker, we'll likely run into other IE10 related issues as well (our version is over a year old) |
Given how intrusive an upgrade of the heavily customized library will be at this point in the 3.1 release, I'm removing the milestone. |
Shame that this won't make 3.1. In the meantime would it be possible to make IE10 users only able to select a single image at a time, so that at least they won't be greeted with a list of errors? |
That'd be an option, do you want to have a go at this? |
We're using an old version of the lib, so the docs at https://github.com/blueimp/jQuery-File-Upload/wiki/Options are not fully accurate for us. As a starting point, have a look for |
It doesn't look like the selecting of a single file is controlled by the javascript, so it may not be as straightforward to insert an IE10 check. From what I can tell:
Not really sure the best way to proceed. |
Still an issue in 3.2-beta1. |
Seems to be a similar issue than in this PR? Thought it would have fixed it? silverstripe/silverstripe-framework#3499 |
That PR silverstripe/silverstripe-framework#3499 actually fixed the same problem for normal uploadfield. Unfortunatly this only solved 1 part of the issue for asset admin. From what I can see, in Asset Admin, the form do send all the files in one POST request (as it should with iFrameTransport) but those files don't get passed on to the Form or UploadField, only one gets through (hence the emptyFileUploadResult). I just don't know where in handling the form request the form files get trimmed... |
html media dialog has been replaced in 4.x with a react based one. The scope of the original issue doesn't exist anymore. |
To reproduce (In IE11 Desktop):
Only 1 image will successfully upload, the rest will return "Empty file upload result" errors:
Tested in latest 3.2-beta1, in Windows 8, IE11.
Works fine in Firefox & Chrome. IE9 didn't allow selecting multiple images at once.
The text was updated successfully, but these errors were encountered: