Jessica Posted December 12, 2006 Share Posted December 12, 2006 If the user enters the string of where the file is on their computer:C:\Documents and Settings\user\My Documents\image.jpgHow can I upload it to the server without using a form like I would normally?What I am trying to achieve is an ajax image upload form, like the one on TheDailyPlate.com(see: http://www.thedailyplate.com/food-nutrition/food/generic/mashed-potatoesclick on Contribute a photo of this item! - Don't actually do it, but that is what I mean. It uploads the image without refreshing the page.)Thanks! Link to comment https://forums.phpfreaks.com/topic/30300-upload-a-file-without-using-a-form/ Share on other sites More sharing options...
fert Posted December 12, 2006 Share Posted December 12, 2006 You can't upload a file without a form. Link to comment https://forums.phpfreaks.com/topic/30300-upload-a-file-without-using-a-form/#findComment-139420 Share on other sites More sharing options...
Jessica Posted December 12, 2006 Author Share Posted December 12, 2006 How are they doing it then? Link to comment https://forums.phpfreaks.com/topic/30300-upload-a-file-without-using-a-form/#findComment-139423 Share on other sites More sharing options...
fert Posted December 12, 2006 Share Posted December 12, 2006 they're using Ajax with a form to upload the file. Link to comment https://forums.phpfreaks.com/topic/30300-upload-a-file-without-using-a-form/#findComment-139430 Share on other sites More sharing options...
Jessica Posted December 12, 2006 Author Share Posted December 12, 2006 That is what I am trying to do, but when I do the ajax call, the php file says the $_FILES[] is empty. I am using mootools, I posted on their forum but no response yet.How would you do it? Link to comment https://forums.phpfreaks.com/topic/30300-upload-a-file-without-using-a-form/#findComment-139432 Share on other sites More sharing options...
Jessica Posted December 12, 2006 Author Share Posted December 12, 2006 Does anyone know what I need to do here? Link to comment https://forums.phpfreaks.com/topic/30300-upload-a-file-without-using-a-form/#findComment-139725 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.