A
Astra
Hi All
The following ASP routine allows me to force a PDF file to download rather
than show up in IE:
Response.ContentType = "application/asp-unknown" ' arbitrary
Response.AddHeader "content-disposition","attachment; filename=" & theFile
Set adoStream = Server.CreateObject("ADODB.Stream")
adoStream.Open()
adoStream.Type = 1
adoStream.LoadFromFile(thePath)
Response.BinaryWrite adoStream.Read()
adoStream.Close
Set adoStream = Nothing
Response.End
This works fine for 250KB - 500KB PDF files, but I've just uploaded a 6MB
file and it simply doesn't seem to do anything. The code does nothing which
in turn means that the standard Save dialogue box can't find the file.
Any ideas on what I can do?
Rgds
Robbie
The following ASP routine allows me to force a PDF file to download rather
than show up in IE:
Response.ContentType = "application/asp-unknown" ' arbitrary
Response.AddHeader "content-disposition","attachment; filename=" & theFile
Set adoStream = Server.CreateObject("ADODB.Stream")
adoStream.Open()
adoStream.Type = 1
adoStream.LoadFromFile(thePath)
Response.BinaryWrite adoStream.Read()
adoStream.Close
Set adoStream = Nothing
Response.End
This works fine for 250KB - 500KB PDF files, but I've just uploaded a 6MB
file and it simply doesn't seem to do anything. The code does nothing which
in turn means that the standard Save dialogue box can't find the file.
Any ideas on what I can do?
Rgds
Robbie