Set default export directory
How can I set the directory for my exports? I'm using s3 but everything is going to
filament_exports/ I want to change this to something more custom.5 Replies
Should just be able to set the disk to ‘s3’. https://filamentphp.com/docs/4.x/actions/export#customizing-the-storage-disk
Sorry my question was to broad. I do have setup the global config
But I want to be able to add a folder inside the bucket... something like this:
Ah, not an expert with s3, but would appending the filename with a directory create the directory in the bucket?
Solution
Ended up creating a custom Export model
and then binding it 😅
Probably appending the path to the file might be the way to go also, didn't try that way.
Looks good. I don’t see a way to do it on the current ExportAction natively, so without a PR to add it extending the class seems proper.