p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_codeclinic thread: SoftwareArtisans FileUp and rename downloal file


Message #1 by "Martijn Remmen" <Martijn@Q...> on Wed, 11 Apr 2001 13:02:24
I'm using the SoftwareArtisans FileUp component to upload files from my 
computer to the web server.

The SoftwareArtisans FileUp component can also be used as a download 
component. The ASP code should look something like this (according to the 
SA samples provided in the help files):

<%
  dim filenaam
  
  Response.Addheader "Content-Disposition", "attachment; filename=" & 
filenaam
  Response.AddHeader "Content-Type", "application/unknown"

Set Download = Server.CreateObject("SoftArtisans.FileUp")

Download.TransferFile (server.MapPath ("files\" & filenaam))
%>

But the problem is that this method doesn't work in Internet Explorer 5.5 
Service Pack 1. Is there a solution that also works in IE 5.5 SP1, maybe 
by using another component? Another problem is that when a file extension 
is an unrecognized fileformat, like .mp3, and you choose 'open' instead 
of 'download', you have to choose 'open' once again and only then the file 
will be opened. 

Anyone?

Thanks in advance, 

Martijn Remmen

  Return to Index