-1

I want make an uploading system with ajax [none page reload]

I have search on google, found some thing, upload in iframes , File API etc...

Old browsers havent file API, and I have some problems with iFrame uploading in IE ,

Is there any way to make it with working in all browsers?

J.K.A.
  • 7,272
  • 25
  • 94
  • 163
  • http://stackoverflow.com/questions/8400488/how-to-submit-file-upload-form-with-ajax?rq=1 – mpm Jan 03 '13 at 10:45
  • Please see the solution provided in http://stackoverflow.com/questions/166221/how-can-i-upload-files-asynchronously-with-jquery – subi Jan 03 '13 at 11:04
  • thats using File API?! Only HTML5 supports , want some thing like iframe uploading... – user1714757 Jan 03 '13 at 11:28
  • possible duplicate of [Ajax file upload](http://stackoverflow.com/questions/2751795/ajax-file-upload) – Ilmari Karonen Jan 03 '13 at 19:52

2 Answers2

1

Since your tags include , I would suggest that the best solution for you would be the jQuery Form Plugin.

This plugin makes it very easy to work with forms via ajax, including forms with file upload fields. You don't need to worry about the browser API or whether it supports it or not; the plugin deals with all that behind the scenes.

There are good examples on the plugin's website, and I can confirm it works well as I've just implemented it in a project myself.

Hope that helps.

SDC
  • 14,192
  • 2
  • 35
  • 48
  • @user1714757 - there are excellent examples on the site I linked. I couldn't provide anything better than that. – SDC Jan 03 '13 at 11:33
  • if im using the plugin , the older browsers do what i want? – user1714757 Jan 03 '13 at 11:37
  • I answered that already. But to confirm: As stated on the plugin site: `For older browsers, a fallback technology is used which involves iframes`. So the answer is **yes, it works with older browsers.** – SDC Jan 03 '13 at 11:46
  • also, the demos and examples are there on the site, so you could have found out the answer just by trying the demos in an old browser for yourself. – SDC Jan 03 '13 at 11:47
1

Use Uploadify. It's really simple and looks great.

http://www.uploadify.com/

Dutchie432
  • 28,798
  • 20
  • 92
  • 109