Jump to content

Upload file froma URL


treeleaf20

Recommended Posts

All,

Is it possible to do a file upload from another site? So for something quick like this:

$source = $_FILES['fupload']['tmp_name'];      
$target = $path_to_image_directory . $filename;           
move_uploaded_file($source, $target);  

Is there anyway to make the $source something like:

$source = "http://www.site.com/pictures?id=12345";      
$target = $path_to_image_directory . $filename;           
move_uploaded_file($source, $target);  

Any ideas?

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/183598-upload-file-froma-url/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.