|In order to force browsers to display the "Save As/Open dialog you must set the ContentType property to "application/unknown" and specify "attachment" (along with the file name) in the Content-Disposition header. For details please refer to the FoxWeb documentation. Here's an example:|
* The content type must be changed in order to prevent browsers from displaying certain file types
ContentType = "application/unknown"
* Specify file name
Response.AddHeader("Content-Disposition", "attachment; filename=" + FileName)
Did you have a chance to look in the file fwstart.log? It may contain useful clues, which could help us diagnose the problem you are having.
FoxWeb Support Team
Sent by Faith on 12/05/2001 05:57:22 PM:
Thank you for the fast resplying.
My timeout period is set for 90 seconds. The error message appear just in a couple of seconds.I tried to change the timeout value to be 3 minutes and got the same error.
Now I got another problem with downloading .doc and .xls files. The browser is trying to open them istead of pop up the save as dialog. I am running download.fwx at browser IE5.5 and IE6.0 with Office2000 installed. Is there any settings required for the browser?
Sent by FoxWeb Support on 12/04/2001 09:41:01 PM:
Could it be that your channel is timing out? If this is the case you will probably see entries indicating so in fwstart.log.
What is the timeout period set for? How long does it take for the error message to appear? Note that you will need to re-start FoxWeb after you change the timeout value.
FoxWeb Support Team
Sent by Faith on 12/04/2001 01:06:35 AM:
I am running the example Download.fwx comming with FoxWeb2.0. With the gif file under size 30KB, everything works just fine. However, I got the error message "Channel stop responding" when I try to download other gif files size over 30KB. The bigger the file size is, the offen the error message occurred. If there is a limitation for downloading files, is there any other way to do so?