How do I make a file downloadable?

I would like to upload a archive to my server and possess it begin installing when its url is clicked.
I don’t desire the page to help change or contain the user go by having a " save that link target" kind of thing……. just want these to click and obtain it.

I know generally there must be a simple tag to accomplish this, but I can not find it everywhere.

< any href=" path/to/filename. zip" > click on to DL< /a>

If its a file it will eventually usualy promt you save it as well as open it, some movies like mpeg’s might auto play in the browser, in that case they have to ‘save target as’

In case you could, why would you want to disable this The sole way it will probably just ‘get it’ with out a prompt is because mimic stated that this file is set to throw open in an application around the users machine.. the file will certainly automatically be stored somewhere in the temporary directory.

If files tend to be allowed to merely download without any feedback/prompt it would have been a fault on the browser plus a security risk.

I assume you desire a pop-up to be (asking where you wish it saved) after you click the website link. There are a great deal of threads/posts dealing having that (here in WDF). You basically have got to type in several header response signal, so that the file is just not opened in your browser (images) or even a known application (most files with the exception zip files).

(Content-type: application/octet-stream is a header that forces the download option to appear).

This entry was posted in Web Design and tagged , , , , , , , , , , , , , , , , , , , . Bookmark the permalink.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *