Open ciobanugabriel opened 10 months ago
The library definitely supports using private buckets. You may need to make sure your IAM settings are correctly configured to allow your application to read and write to the private bucket.
If i`m using like this : $disk = Storage::disk('s3'); $filePath = 'media/file-test.txt'; $fileContents = 'Hello, this a test!'; $disk->put($filePath, $fileContents); $fileContent = $disk->get($filePath); the app is working properly so IAM user have a good acces configuration
The library definitely supports using private buckets. You may need to make sure your IAM settings are correctly configured to allow your application to read and write to the private bucket.
Can you show me a configuration?
Look at the makePrivate()
function call. I had to do this for it to work.
I want to store data on AWS S3 in a private bucket to restrict access to media only within the application. For example, I want users to be able to watch a video without being able to download it.
Unfortunately, it only works when I set the bucket to be public. If I set it to private, I receive a 403 response when the MediaUploader attempts to access a file from the bucket.
filesystem.php
];
mediable.php
Am I doing something wrong, or does the library not allow private media?