Modify Export Action download URL link
My app is deployed in a sub-folder https://example.com/my-app. How can i modify the download .csv or .xlsx URL link in notification bar ?
12 Replies
Anyone can help me solve this without directly modifying the route in the vendor package?
Hi, i've the same problem. Ii've correctly configured my
FILAMENT_FILESYSTEM_DISK=s3
and all works. When i click the export buttons the file is correctly created on digital ocean spaces.
But in the notification modal the download link poit to localhost. There is a way to edit that url?It points locally, but if you look at it it should go through the export url parser to get the correct file
thanks for answer...sorry but i didn't understand well what i should do...can you try to explain please? thanks
When you click the export link does it work?
yes, it works, i mean that i'm using Digital Ocean Spaces for store my files and effectively after export click, a folder named with a number /8 for example was created on it.
So now i've a folder with 2 csv files and a headers.csv file inside the /8 folder on Digital Ocean Spaces.
After that i see that the bell notification show 1. I click there and the download link (see pics) don't work because they are like:
http://localhost/filament/exports/1/download?format=csv
Correct, so what is the issue? It's localhost because it's going to the export route. It's not a direct link to the download.
when i click on download link i obtain this
So it doesn't work....
exactly
i' don't know if is because i have filament_exports folder inside a staging folder....maybe?
so the 'yes it works' means 'no it doesn't work'
Why would you have that folder there?
But it's doubtful, the above is saying ti's checking for the folder and the storage driver cannot find it.
sorry, yes, I wanted to explain the whole process until it broke
because i set
FILAMENT_FILESYSTEM_DISK=s3
and s3 are configured with DO Spaces data