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..