1

I am trying to create a html simple website on IIS that will help downloading files.

<!doctype html>
<html lang="en">
<head>
</head>
<body>
<a href="newUpdater.xml" download="newUpdater.xml">Start automatic download!</a>
</body>
</html>

This is running file. On clicking "Start automatic download!" it is downloading newUpdater.xml in browser. But, If I directly give this download link in browser (below), it is opening the XML file in all browsers(chrome, firefox).

http://169.254.68.202/newUpdater.xml

Any Idea How to fix this. I think this is possible as

http://dl.google.com//googletalk//googletalk-setup.exe

this link on browser will start downloading gtlk directly.

  • http://stackoverflow.com/questions/3841578/is-there-a-way-to-force-the-user-to-download-a-file-from-a-href-link-rather-than?rq=1 ur solution i think – iDebD_gh Apr 24 '14 at 09:34
  • This may help http://stackoverflow.com/a/11725527/2588097 – userDEV Nov 12 '14 at 16:31

0 Answers0