Display a Private File From S3
Hello - is it possible to upload a document to S3 using
visibility('private')
and then have the file displayed on the View and Edit resource pages using the standard FileUpload
? Or do I need to use a custom view to accomplish this?6 Replies
As long as your bucket permissions are set up correctly it should display them fine.
You pretty much have to use visibility private with s3.
@awcodes can you please elaborate on this? how should it be configured?
Look up ACL in Aws. I don’t work with them much personally so someone else will have to help.
It’s not a filament thing though.
Dear @awcodes
What if I have a dynamic S3 config ? each tenant has its own S3 config to upload & display files.
Thanks
That should be fine, you need to generally use the temporary file method which gives access to private files
Likely issue is CORS though if the file isn't showing if memory serves
Could you please show us an example? thanks