How to allow download of files on a HTML server?

I have setup a HTML Server to run on Windows Server 2012. I have added few virtual directories and some files.

I am trying to download a file firmware.dob. But when I click on the file the browser reports "File not found"

    404 - File or directory not found.

As an admin, how do i enable users/make the browser to download file rather that try to open it?

Answers


This should be done by PHP. If you have just HTML i don't think this can be solved. In PHP you could set a Header. Perhaps you can use your admin tools of your server to set some properties of the file you're talking about. maybe the server gives you the option to force download prompts.

If you can only use HTML you might consider using a flash plugin for this. But this would only work on desktops, not on mobile phones. You could look into this: Creating download prompt using purely javascript


Need Your Help

Spark sql using spark thrift server

scala apache-spark apache-spark-sql

I want to access tables registered in spark using JDBC kind of service, using the thrift service provided by spark.

Status Bar Issue for Auto Layout in ios sdk due to missing Delta Property

ios iphone xcode5 autolayout statusbar

My apps contains various xibs(Not Using StoryBoard), I am using Auto Layout to adjust view to support various devices.