Support the ongoing development of Laravel.io →
posted 8 years ago
Packages
Last updated 2 years ago.
0

did you try clearing the config cache. just in case. php artisan config:clear

0

Just a follow up for anyone else who sees this, somebody got the answer on stack overflow:

"You have to give the destination file path/name where you want to save this file on S3 bucket as the first argument of put function. Currently you are trying to save the file at the root of bucket without any name. Try something like this:

Storage::disk('s3')->put('filename.html', file_get_contents($filePath)); This full path of the file is the Key in this context & that is what's missing in your original request."

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.