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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.