Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send multipart/formdata with jQuery.ajax in IE

Is there a way to do the following solution in Internet Explorer? (IE7 and up)

link: Sending multipart/formdata with jQuery.ajax

The solution code works great in every browser but IE.

like image 709
James Nine Avatar asked Oct 26 '11 06:10

James Nine


2 Answers

No, you can't use jQuery.ajax to upload files and FormData isn't supported by IE unfortunately.

Check out the Uploadify jQuery plugin to upload files via ajax. You can also use jQuery Form Plugin to upload files via ajax.

like image 60
Sarfraz Avatar answered Oct 20 '22 16:10

Sarfraz


Unfortunately, IE doesn't support the FormData API yet. However, you can achieve something similar using any number of jQuery AJAX form post plugins, such as this one.

like image 40
Annabelle Avatar answered Oct 20 '22 16:10

Annabelle