How to upload files using ajax?

how to upload files using ajax in jquery, windows 7

  • how to upload files using ajax in jquery. system: windows 7, iis, asp.net, c#

  • Answer:

    AJAX doesn't support file upload. Your best bet to achieve a "background" upload is to use a hidden iframe and trigger the upload from that using a normal post (http://www.joshclarkson.net/blog/file-uploads-in-a-hidden-iframe-using-jquery/ from googling "hidden iframe upload .net"). You can build up AJAX-based code that will track the progress of the upload by querying the server to see how much of the total upload has completed, but the upload itself needs to use a normal post. Other alternatives include Java- or Flash-based file uploaders.

dotnetdude at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

IrishChieftain

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.