Csv export does not overwrite?

I'm trying to make it easy for internal users to filter and export data fom our database.

I've written a query that uses the same "post" values as the displaying query and added a button to first export that data to a file in my image folder and then including a goto link to open that file for quick dounload

I can see that the proper filtered values are sent to the query but the file never changes?? It does not seem to overwrite. Am I dooing this wrong?

Hey there, can you share what are you doing?
Can you post some screenshots so we can see what's going on?

Hi hi... the best is to "change the filename" all the time on download.. as we find the temp file does not always update...

So what we did...
On filedownload ..... we passed a random number to the end of the filename.. when downloading the file... eg file-12345.csv

so that everytime you click on download... it creates a "new file" and then wont get stuck on the "temp" file and will always update... and it work eveytime.. :slight_smile:

go and see this post

sorry, away for holidays. I understand changing the name but I would wonder how to auto mate the link to the file with the new name.

I want it to automatically download the saved file

Here is a guide which at the end, there's a similar case, maybe it helps