I have a server running and a web client accessing it to download file.
When I access
server/…/MyFile/
the file named “MyFile” is downloaded and a pop up “Open , Save as” is displayed.
When I click save as, the proposed name is “MyFile”.
How do I change it to another name?
p.s. I can not change /MyFile to /SomeOtherFile, since this link contains another file each time, depending on the work done by the server. Thus, the proposal “MyFile” in save as in meaningless. I would prefer to propose the name of the file I actually downloaded.
Thanks
Yura
You need to send this header with it:
In Asp.Net it is the following. But what language, framework and server are you using?
If you use Java servlets it is something like this: (Not used Java for some time)