alex_hill's avatar

Uploading a file to Azure using Storage Facade

I am trying to copy a file using the storage facade but keep getting a "FileNotFoundException in Filesystem.php line 385" error.

Current code:

$contents = Storage::disk('azure')->copy('C:/laragon/www/rfq-portal/public/uploads/20170428050403_caret.png', 'file1.png');

I have tried a number of combinations of full path, relative path etc, but no luck. When I go to the full path (as above) I get the image shown. Any idea what might be the cause, or what path I should be using?

0 likes
1 reply

Please or to participate in this conversation.