G
Guest
I have developed a web based file manager application. It has a simple
interface that allows users to upload and download files. Everything works
great except for one new download problem. I am forcing the file download in
the following code:
Response.Clear()
Response.ContentType = "application/octet-stream"
Response.AppendHeader("Content-Length", myFile.Length.ToString())
Response.AppendHeader("content-disposition", "attachment; filename="
+ System.IO.Path.GetFileName(PhysFilePath))
Response.WriteFile(PhysFilePath)
Response.End()
The problem occurs when the file size gets to be over 64 MB. If the file
size is under 64 MB, it works great and immediately prompts with the download
dialog. When the file is over 64 MB the page just hangs and nothing happens.
Does anyone know what might be causing this problem? Is it a code issue or
something with the server/iis (server is W2K3, IIS 6)?
Thanks,
Tim
interface that allows users to upload and download files. Everything works
great except for one new download problem. I am forcing the file download in
the following code:
Response.Clear()
Response.ContentType = "application/octet-stream"
Response.AppendHeader("Content-Length", myFile.Length.ToString())
Response.AppendHeader("content-disposition", "attachment; filename="
+ System.IO.Path.GetFileName(PhysFilePath))
Response.WriteFile(PhysFilePath)
Response.End()
The problem occurs when the file size gets to be over 64 MB. If the file
size is under 64 MB, it works great and immediately prompts with the download
dialog. When the file is over 64 MB the page just hangs and nothing happens.
Does anyone know what might be causing this problem? Is it a code issue or
something with the server/iis (server is W2K3, IIS 6)?
Thanks,
Tim