View Complete Thread | FoxWeb Forum Home
Search:
Date:    Msg ID:   
From:    Thread:   
Subject:   
Nothing comes to mind, but you may want to post a simplified version of your code, illustrating the problem.  For example:
 
<%
Response.ContentType = "application/x-zip-compressed"
Response.AddHeader("Content-Disposition", "attachment; filename=MyFile.zip")
* Read contents of file into string
FileContent = FILETOSTR("MyFile.zip")
* Specify size so that progress bar works properly
Response.AddHeader("Content-Length", Server.ToString(LEN(FileContent)))
Response.Write(FileContent)
Response.End
%>

Obviously you will need to adjust the path to the zip file accordingly so that it points to a pre-existing file on your server.

FoxWeb Support Team
support@foxweb.com email

 

Sent by Alan Harris-Reid on 07/30/2002 05:45:35 AM:
I have incorporated the Foxweb file-download example into a script file to enable the user to download a .zip file from the website onto their pc.  Everything works fine and the download appears to go smoothly, but on closer inspection an empty file is downloaded, whereas the original file on the server is definitely there and is 70Kb.
 
Has anyone any ideas what might be going wrong here?
 
TIA
Alan