View Full Version : remote uploads?
04-04-2004, 03:02 AM
how do u make it so that if someone types an http:// url into a file field and clicks Upload, it will go to the remote file and copy it to my server? but also i want it so that when someone clicks browse in the same file field it will upload the local file to the server.
04-04-2004, 04:38 AM
check the size of the uploaded file ($_FILES['fieldname']['size']) ... , if its > 0 then a file has been uploaded , else if $_FILES['fieldname']['name'] is not empty then it should contain your users input (hopefully a url)
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.