Jump to content

JQuery/Ajax File Upload?


MrFish

Recommended Posts

I don't know if this is possible because when posting file information through a form it has to have special properties unlike simple string data. So is it possible to upload, say, and image file with ajax? Preferably with a JQuery example because it's so much simpler but I would be grateful for any example that worked.livepreviewp.jpg

Link to comment
Share on other sites

To upload files you have to submit a form to an invisible iframe. The XMLHTTPRequest object can't send files at the moment. You can add an onload handler to the iframe so that something happens once the file has been uploaded.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...