Solved

Force Document Download

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
This video teaches users how to migrate an existing Wordpress website to a new domain.
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now