F
Filament2mo 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
Jap2mo ago
Anyone can help me solve this without directly modifying the route in the vendor package?
ocram82
ocram822mo 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
toeknee2mo ago
It points locally, but if you look at it it should go through the export url parser to get the correct file
ocram82
ocram822mo ago
thanks for answer...sorry but i didn't understand well what i should do...can you try to explain please? thanks
toeknee
toeknee2mo ago
When you click the export link does it work?
ocram82
ocram822mo 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
toeknee2mo 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
ocram822mo ago
when i click on download link i obtain this
toeknee
toeknee2mo ago
So it doesn't work....
ocram82
ocram822mo ago
exactly i' don't know if is because i have filament_exports folder inside a staging folder....maybe?
toeknee
toeknee2mo 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
ocram822mo 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
More Posts
I try to seed using has function for relationship but does not create child record.I can propertyServices separately, it works. I wonder what I made wrong on using has in PropertySeedmultiple panels on single dashboard as tabs?Wondering how/if we can have multiple panels visible on a common dashboard for easy navigation! InForm does not revalidate after change valueI have set unique(ignoreRecord:true), when it to validate with red message the submit button is alsogetPageTableQuery() function on Simple Resource.Hi all, i have a question . currrently im using simple resource in my project. i wanted to use getPaHow modify rule for unique() when it must be unique if another field eg group are the same?I have a house that belongs to a villege. In the same villege house_no must be unique but in differeBootstrap for Landing Page?Hi i have existing project with bootstrap and i want to use filament. Is this advisable or possible.Spatie Media Library responsiveImages How to convert to webp?I tried to google for it but I did not found: how can I configure this plugin or the underlying LaraChanging registration formHi, I'd like to significantly change registration form, so in my case to remove "name" field, use emspatie translatable how to define form schema in a correct wayHello all, could you please give me guidance how suppose to define the form schema for the translaSoft-deleted relationsFound other posts before but no answers. Works when campaign is soft-deleted: TextColumn::make('cam