You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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?
The text was updated successfully, but these errors were encountered: