1👍
✅
According to your code you are writing the csv to the HTTP response, so it’ll show up in the users browser. The file is never created locally.
The client’s browser knows that the response should be saved with the somefilename.csv
filename since that’s the header you’re sending, but again, the file is never created locally on the server.
Source:stackexchange.com