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
awcodes
awcodes16mo ago
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.
bwurtz999
bwurtz999OP16mo ago
@awcodes can you please elaborate on this? how should it be configured?
awcodes
awcodes16mo ago
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.
BKF Dev
BKF Dev4w ago
Dear @awcodes What if I have a dynamic S3 config ? each tenant has its own S3 config to upload & display files. Thanks
toeknee
toeknee4w ago
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
BKF Dev
BKF Dev4w ago
Could you please show us an example? thanks
Want results from more Discord servers?
Add your server