Upload from URL instead of PATH?(PHP)

Hi, I’m working with the PHP SDK and I’m able to upload file successfully with a local path. I’m wondering how do I upload from an external URL instead?

$file = new File();
Backendless::$Files->upload( ''http://asset.beyonce.com/wp-content/uploads/2016/06/XIII9792.jpg ,"mypics" );

Is the code I"m using! Returns error:

[02-Jun-2016 16:05:20 UTC] PHP Fatal error: Uncaught backendless\exception\BackendlessException: File with file path {$this->path} does not exist. in /Applications/MAMP/htdocs/bey/vendor/backendless/src/services/files/File.php:29

Hi Haley,

You cannot upload a file from external URL. You’ll need to first download it from the source, and then upload as a local file to Backendless.