Solved

Force Document Download

Posted on 1998-12-16
1
184 Views
Last Modified: 2013-12-25
How do I "Force" a document to download?  I have a href tag, but because .doc is registered in the browser, it displays in the explorer window.  I want it to prompt for a "save file as..." (like you where downloading a zip).
0
Comment
Question by:hadermann
1 Comment
 
LVL 4

Accepted Solution

by:
ruperts earned 50 total points
ID: 1857311
You can not do this unless you ask the user to remove the assocition between .doc and the browser (not likely). You could on the other hand make the document a self-extracting zip, this way the user would either have to save it to disk or run it straight off forcing the user to select a location to expand the zip file to. (This would also make a much smaller file, and therefore happier users)!
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Changing Web Hosts: Need Your Expert Opinion & Ideas 6 49
ebay messages api 6 19
How to make a good PHP + MySQL + JS pagination system? 3 67
Unexpected End of File 11 58
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question