-
Notifications
You must be signed in to change notification settings - Fork 268
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
Upload File in IE8/9 doesn't work #74
Comments
My logs right before the error :
|
Can you try with the non-min version? On Wed, May 14, 2014 at 4:42 PM, AlexCapi [email protected] wrote:
|
I just tried with :
But this is what I get then :
|
Possibly, though I can't say from those logs, could you make a demo of this? Or better, debug it and see which line is throwing "Object doesn't support this action" |
Well as I said in my first post, is it possible that the error come from that line : _ref = req.headers;as stated in the error log ? |
That must be IE's devtools failing, |
I have a problem for ie9 upload file :). sSince this subject is already open, I'll avoid opening another. I used this jquery upload library : https://github.com/blueimp/jQuery-File-Upload the request is correctly send except, yes this is the big problem, the file is does'nt send O_o. I think is again the xhr/xdomain problem because it works fine on chrome, ie10, firefox, ... |
so i mentioned this to @Alexcapi in an email, file upload using xmlhttprequest requires formdata, which isnt supported on ie8/9, all you can do is using a normal form fullpage submit. @Alexcapi was trying to using a flash workaround, though i dont see how it'll be able to interact with xdomain if you use flash |
jquery-file-upload use iframe-transport plugin. I include that but now ie9 show me a download popup to get the server result O_o. But it's not your library in this case, it's jquery-file-upload |
yea so iframe transport wont work with xdomain either, xdomain only patches On Fri, May 23, 2014 at 11:33 PM, Benjamin Besse
|
Still your Form demo at http://jpillora.com/xdomain/example/formdata/ is not working on IE8/9 when trying to upload anything. |
They don't have FormData, so it won't work On Monday, May 26, 2014, AlexCapi [email protected] wrote:
|
You should specify in the description of your library that upload does not work in IE8 / 9 using XDomain in this case. |
It's possible to upload anything if you can convert the file into base64 string format. Sadly IE8 and 9 don't support File API so it can't load local files but you can use Flash. I've used this http://aymkdn.github.io/FileToDataURI/ and xdomain to successfully upload files without any issues on those browsers. It's far better than iframe hack. |
+1 On Wed, Jun 11, 2014 at 1:14 AM, Naomi Suzuki [email protected]
|
XDomain supports FormData though IE8&9 do not. A flash uploader would use the flash's AJAX implementation instead of As @mabotofu points out, you can flash to convert a file to a base64 string, then send that via JS ajax (which XDomain can work with). Will close this for now and suggest @mabotofu's solution as the IE89 file upload workaround. |
Refering to #73.
I just tried the crossdomain.xml tip. But I am stuck on an error when accessing the server for the upload :
SCRIPT445: Object doesn't support this action xdomain.min.js, line 3 character 8458
Here is my upload function that make a call to my slave server :
I must say that I am testing on IE 9 but I think the problem will be the same on any IE <= 9
I am not 100% sure but it seems the error is happening on this line of xdomain.js _ref = req.headers; looking to the error code and line 8459 of xdomain.min.js above.
The text was updated successfully, but these errors were encountered: