medium-editor-insert-plugin icon indicating copy to clipboard operation
medium-editor-insert-plugin copied to clipboard

Image upload not working in IE9

Open Jaza opened this issue 10 years ago • 3 comments

As the project maintainers may have guessed (from my recent pull requests), I have the un-enviable task of getting medium-editor-insert-plugin working as close to 100% as possible in IE9.

I've gotten almost everything working now - but image uploads are still not working for me.

After applying my two most recent fixes:

https://github.com/orthes/medium-editor-insert-plugin/pull/147 https://github.com/orthes/medium-editor-insert-plugin/pull/148

Not getting any errors. However, even after including:

jquery.xdomainrequest.min.js jquery.xdr-transport.js jquery.iframe-transport.js

The image is still not actually getting uploaded. From IE debugbar / dev-tools network panes, and also from my server logs, I see that no POST request (or other request) is being made.

I've verified that Images.prototype.uploadAdd in medium-editor-insert-plugin is getting called (and data.submit in jquery-fileupload is getting called too); but Images.prototype.uploadDone never fires (not surprising, since there's no AJAX request happening).

Any ideas? Anything obvious that I've missed? Any more fixes that need to be made to medium-editor-insert-plugin, jquery-fileupload, or another related library? Running out of ideas here!

Jaza avatar Feb 17 '15 05:02 Jaza

Thanks for your fixes so far. Since cross browser file upload might be tricky, I've decided to use blueimp's jQuery File Upload Plugin, so we can blame them not me :)

If Images.prototype.uploadAdd is called and also data.submit, the problem will be in jQuery File Upload Plugin. It looks like older IEs are not fully supported: https://groups.google.com/forum/#!searchin/jquery-fileupload/ie

linkesch avatar Feb 17 '15 12:02 linkesch

For debugging purposes, I've set up a test site at:

http://mediumeditortest.vector5.com.au/

You can select an image to upload inline, and it will get sent to the server; but it doesn't get saved, the server returns back a sample image (partridge.jpg) on success.

Works fine for me on latest Chrome / Firefox / Safari, but not on IE9 - after selecting an image to upload, it just shows an empty newline in the editor content.

If anyone is able to look at this test site (has no password to access, is just prevented from being indexed in google), and to see what's going wrong, would be much appreciated.

Jaza avatar Mar 12 '15 05:03 Jaza

Cross-posted at SO, in the hope that maybe with a wider audience, someone will have a solution to this:

http://stackoverflow.com/questions/29002732/medium-editor-insert-plugin-image-upload-not-working-in-ie9

Jaza avatar Mar 12 '15 05:03 Jaza