PetroGromovo's avatar

How to upload image from absolute url into storage?

I need to upload image from absolute url, into storage, like

Storage::disk('local')->put($destImagePath, File::get($imageFileAbsoluteUrl));

I got error :

  File does not exist at path ...

as I need to pass File::get( path of file (not url) I do not use Spatie Media Library in this project

Which is valid way ?

"laravel/framework": "^9.30",

Thanks in advance!

0 likes
2 replies

Please or to participate in this conversation.