F
Filament7mo ago
Jap

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
Jap
JapOP7mo ago
Anyone can help me solve this without directly modifying the route in the vendor package?
ocram82
ocram827mo ago
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?
toeknee
toeknee7mo ago
It points locally, but if you look at it it should go through the export url parser to get the correct file
ocram82
ocram827mo ago
thanks for answer...sorry but i didn't understand well what i should do...can you try to explain please? thanks
toeknee
toeknee7mo ago
When you click the export link does it work?
ocram82
ocram827mo ago
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
toeknee
toeknee7mo ago
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.
ocram82
ocram827mo ago
when i click on download link i obtain this
toeknee
toeknee7mo ago
So it doesn't work....
ocram82
ocram827mo ago
exactly i' don't know if is because i have filament_exports folder inside a staging folder....maybe?
toeknee
toeknee7mo ago
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.
ocram82
ocram827mo ago
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
Want results from more Discord servers?
Add your server