Local File Uploads for Multi Tenant Setup
Hello everyone,
Currently playing around with Filament for the first time and I have two issues regarding file uploads in a multi tenant setup that I haven't been able to figure out using the documentation an search:
1. I would like to store files using the local driver so they are not directly accessible on the web, to make sure nobody can access files uploaded by a different tenant. This would then require a custom route and some sort of controller to return the file only if the correct tenant requested it I assume. Has anybody built this before? Or am I missing an easier solution? The docs don't really explain what the
visibility()
method actually does.
2. I'm using subdomains to identify my tenants, which leads to CORS issues even when using the public disk. Is there a proven solution for this?
Thank you for your time!0 Replies