How to set response filename without forcing “save as” dialog December 2, 2022 by Tarik The correct way could be: Content-Disposition: inline; filename="myfile.txt"