Downloading files from my site

They have: 5,633 posts

Joined: Jan 1970

I want visitors to be able to download a 400-500k pdf file that I will host rather than the original site the file is on.
Like a file download you click download and a windows save as dialogue box come up
http://www.forecastingsolutions.com/

detox's picture

They have: 571 posts

Joined: Feb 2001

3 ways of doing this:
1) zip the file so the user is forced to use the dialog box
2) add this code to your ASP page:

<?php
Response
.AddHeader \"content-disposition\",\"attachment; filename=fname.ext\"
?>
where fname.ext is the filename. NOTE this is ASP code NOT PHP

3) get a download component like ASP Upload.

Keegan's picture

They have: 300 posts

Joined: Aug 2001

I might be up for a long time but I think the question was a bit simpler detox, maybe I need to go into detox but I will give it a shot.

Steve_69, am I tired, or do you not realize that you can save the original pdf file, then upload it to your own server? If so that is what you need to do, and then zip it like detox said so Acrobat does not open on their machine, I would rather that happen myself, but maybe I am just smoking some really bad gutter crack.

Gutter crack (Spilled Dr Pepper)

K

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.