classic-o / nova-media-library

Media Library for admin panel "Laravel Nova"
MIT License
157 stars 66 forks source link

403 Error When Uploading to S3 #44

Closed JamesCobbledick closed 4 years ago

JamesCobbledick commented 4 years ago

Describe the bug When using the S3 file driver and attempting to upload I receive a 403 error.

I have set the relevant config on nova-media-library and have tried setting the 'private' option to false & true, both fail.

To Reproduce Steps to reproduce the behavior:

  1. Set a S3 based disk on nova-media-library config
  2. Upload a file through the media library in Nova
  3. Error 403 received.

Screenshots Screenshot_208

Additional context I'm using Laravel 8.

If I change the ClassicO\NovaMediaLibrary\Core\Upload.php file in the save() function and remove "Helper::visibility($this->private)" it resolves the issue.

I see this as only a temporary fix and this is why I've not made a pull request.

classic-o commented 4 years ago

Hi. Please use google search. This is a problem with the rights on AWS. Use error text from your screenshot for search