MrFish Posted June 29, 2011 Share Posted June 29, 2011 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. Link to comment Share on other sites More sharing options...
Ingolme Posted June 29, 2011 Share Posted June 29, 2011 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 More sharing options...
MrFish Posted June 29, 2011 Author Share Posted June 29, 2011 Ok, I will try that. Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.