Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Re: Securing Download Files


Message #1 by "Gisella" <peregrine@e...> on Fri, 3 Jan 2003 22:22:12
Unfortunately my code above won't work for the following reasons:

1. The name of the ASP page containing this code is what shows up in the 
download window, not the name of the file being downloaded.  When given 
the option to open the file or download it, my browser says "You have 
chosen to download a file from this location test.asp from 
http://www...".  

When you choose to download the file, the filename is that specified in 
the below filename parameter.  

Response.AddHeader "content-disposition", "attachment; 
filename=filedownload.zip" 

I don't see any way around the name of the ASP page showing up in the 
download window.

2. The content of the download file contains the HTML code from the ASP 
page with the code.  This became evident when opening up the download file 
in notepad.

3. A Content-Disposition header with type "attachment" won't work in IE 
4.001 (http://support.microsoft.com/default.aspx?scid=kb;EN-US;182315)

Back to the drawing boards I guess :(

Any other ideas?

Thanks,
Gisella

  Return to Index