Laravel 9 Digitalocean spaces upload file

221 Views Asked by At
   $filename = time() . $file->getClientOriginalName();


        Storage::disk('do')->put("public/images/{$directory}/{$filename}", File::get($file), 'public');

        return "images/avatars/{$filename}";

I upload file there is not any error but file doesn't upload to digitalocean spaces

0

There are 0 best solutions below