Suggestions to upload image using jQuery ajax?

Your best choice is this plugin. You're wasting your time trying to do it without this.

Your best choice is this plugin. You're wasting your time trying to do it without this. jquery.malsup.com/form.

There is no straightforward way to upload a file via AJAX. That is a limitation in HTML4. Workarounds are using an iframe or Flash.In HTML5, a File API is introduced to solve that problem.

Here's a demo of leveraging that API (using a Firefox 3.6+), which allows you to drag and drop an image and load it without sending it back to the server: html5demos.com/file-api. It also supports multiple files: http://demos.hacks.mozilla.org/openweb/DnD/.You can read about that specification on W3.Org, if you are keen. If you cannot depend on clients to have browsers supporting HTML5's File API, you may either roll you own or choose to use a library that implements the iframe workaround: http://www.fyneworks.com/jquery/multiple-file-upload/ http://jquery.malsup.com/form/ http://www.phpletter.com/Demo/AjaxFileUpload-Demo/ http://aspzone.com/tech/jquery-file-upload-in-asp-net-mvc-without-using-flash.

Thx @william - I am trying jQuery Form but am running into problems in triggering the submit since my button is not rendered by using input type=submit -- see here for the new question I posted -- I will also check your other solutions – torr Jun 24 at 2:36.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions