New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File Visibility Issue , All files are public #239
Comments
can you provide the entire disk config that you are using and a stat of the file? From your other question, I'm assuming you are using the 'public' disk. For local filesystem, file visibility is equivalent to the unix permission level of the file (see Laravel docs). However, if you are using a disk within the webroot, it is still being read by the apache/nginx user when accessed via URL so will still be returned. For disks not in the webroot, you could apply your own logic to determine which files to expose from a controller (relevant docs). |
I am referring to S3 storage on dreamhost here
|
For cloud disks, you should double check the permissions of the bucket itself in AWS (or dreamhost?). You might have the bucket set to have all files be publicly accessible. |
Using Dreamhost : DreamObjects Double checked the Bucket is private + Object permissions default to private in DreamObjects |
Can you clarify what you mean by the objects being public? Is the object directly accessible via URL? Does |
Is the object directly accessible via URL? Yes Does $media->getUrl() return a URL when you don't expect it to? It returns the correct url to correct Bucket Resource , but that url is supposed to be private QuickNote : If i use ->makePrivate() while uploading the file , it is working fine and making the file private . |
ok, I see the issue. The uploader is defaulting to public. Use |
Looks like this messed up the Variant Generation . |
Take visibility value from filesystem config, if defined, if not default to public. A fix for plank#239 (comment) This was also the reason for issue reported in plank#173 (comment)
Have set the visibility as 'visibility' => 'private' in filesystem.php , But the uploaded file is always Public
The text was updated successfully, but these errors were encountered: