1

I would like to change the file name of a downloaded file from Submit that uses Content-Disposition: attachment; filename=Reports.csv

I would like to Download that file with a preset file name Content-Disposition: attachment; filename=AnyFileName.csv

I would need it to be userscript friendly

The Download is Post and the content it returns is Content-Type: application/octet-stream; charset=UTF-8

I need it to change the filename of the download file

kire38
  • 75
  • 8

1 Answers1

2

That's not gonna be easy at all. To do this you will have to:

I'm sory, it's probably much more work than you expected. Good luck. You may alternatively consider some add-on or program that tampers with the HTML headers for that particular site.

It would be much easier if you could use the download attribute on <form>, but that's not possible.

Tomáš Zato
  • 50,171
  • 52
  • 268
  • 778