mrdeadman Posted November 11, 2007 Share Posted November 11, 2007 Hi Everyone, Is there any way of setting the $_FILES array without actually uploading a file through http upload? I ask because I want to send a file that already exists on my server to be handled by my script that deals with normal uploads. The reason the file has to be sent in the $_FILES array is that this is how the upload script receives and processes files and it is zend encoded so I can't edit it! Sorry if that sounds ridiculous. If you need any more info let me know. Thanks Link to comment https://forums.phpfreaks.com/topic/76864-solved-_filesforms-question/ Share on other sites More sharing options...
GingerRobot Posted November 11, 2007 Share Posted November 11, 2007 You can 'submit' a multipart form with a file using cURL. Never done it myself though. Link to comment https://forums.phpfreaks.com/topic/76864-solved-_filesforms-question/#findComment-389188 Share on other sites More sharing options...
mrdeadman Posted November 11, 2007 Author Share Posted November 11, 2007 Thank you for the pointer - just having a look now and it looks like cURL will do exactly what I want. I'll mark this as solved. Thanks again Link to comment https://forums.phpfreaks.com/topic/76864-solved-_filesforms-question/#findComment-389225 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.