Solved

Force Document Download

Posted on 1998-12-16
1
183 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
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.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

773 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