Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Downloading a file from my website

Status
Not open for further replies.

bj201

Programmer
Apr 28, 2003
4
US
I have a file on my website, that i wish the people using the site to be able to Download rather than having it open itself up in the Browser window (it is an Excel file!)

Hope someone can help

Cheers
 
cheers Edward, it is a tiny file, and i am not too sure if all users will be able to use Winzip???

Secondly how do i get the Browser to prompt for a Download?

Cheers
 
What do you estimate the percentage of your users who are using Excel but don't have WinZip? [lol] It doesn't matter whether or not you use WinZip (you can always provide a link on the site to download it), as long as you have a suffix the browser does not recognize (another example:
Code:
.spreadsheet
)

When a browser hits a zip archive, it automatically prompts the user for a download. This is because the browser only attempts to run the file in the browser environment when it knows that the file is tied to some kind of helper application, such as Microsoft Word, Adobe Acrobat Reader, Microsoft Excel, etc. WinZip is not typically identified by a browser as a helper application, therefore the browser doesn't know how to "display" it, therefore the browser simply prompts the user.

It doesn't matter if it's a tiny file or not, zipping it will force the download prompt and that's what I understood your need to be. Okay, you won't save a lot more bandwidth, but that was a bonus anyway.

On the other hand, if it's that tiny a file, you could always put the data on an HTML page... [smile]

Cheers,


[monkey] Edward [monkey]

Like Lovecraft? Know Photoshop? Got time for the Unspeakable?
 
Cheers,very helpful, and yes i am new to web development!
The Data is already on a page,
but some of the users will want it on Excel , for a variety of reasons!

Thanks for the Help!!

BJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top