0

Is it possible to take a direct download url/link, and format it so when it is entered it automatically chooses to save as? This is not going to be done as a link in the HTML, this needs to be a url/link I could email someone that when clicked, or copy/pasted into a browser would run as a save as option.

Example: saveas_http://sourceforge.net/projects/vlc/files/latest/download?source=carousel

I am trying to provide a link to a hosted xml file.

If you click the link, it tries to open the xml in your browser, but if you save as, it will actually download the file.

So if a save as switch on a URL is not possible, any recommendations to achieve the same result is appreciated.

This will be offered on machines I don't have control over, so choosing to modify the machines default action for opening xml files is not going to be a feasible option.

Fuzz Evans
  • 2,893
  • 11
  • 44
  • 63

1 Answers1

1

Think this post covers the same topic and might have the solution you're looking for.

Community
  • 1
  • 1
jksloan
  • 184
  • 1
  • 4
  • For my needs, the save as command needs to be directly on the link, not in html, as I will be providing the link via email, IM etc. – Fuzz Evans Dec 06 '13 at 15:47
  • porneL's dead simple solution would work best I think assuming you could zip the file first. I know my corporate email policy makes sending links to and downloading XML files hard and I have to always zip them to get around this. JavaScript obviously wouldn't be feasible for including in emails and such, but if you have access to a web server I like Tyler's idea. – jksloan Dec 06 '13 at 15:56