-6

Possible Duplicate:
How can I upload files asynchronously with jQuery?

I need to upload file with ajax.
Is there any method to send files using ajax but only not by flash.

Community
  • 1
  • 1
LifeInstructor
  • 1,622
  • 1
  • 20
  • 24

2 Answers2

1

It is possible for any modern browser apart from IE.

Bascially you need to get Javascript to load the file (see here). You can then use that data to post it through AJAX.

Ed Heal
  • 59,252
  • 17
  • 87
  • 127
-2

It isn't possible to send files with AJAX.

Uhehesh
  • 506
  • 2
  • 8
  • 22
  • I know that in ajax there are only two methods post and get but in there any possibility to send the form with ajax request I think there must be any way – LifeInstructor Aug 19 '12 at 21:29
  • The [link](http://stackoverflow.com/questions/166221/how-can-i-upload-files-asynchronously-with-jquery) provided by Daniil suggests otherwise. – KRyan Aug 19 '12 at 21:33