File Download code stopped working

G

Guest

Greetings. I've had the following code running perfectly on site for nearly
18 months and then on March 2, 2005 I started getting reports from users that
my file download feature was broken. It's not just a certain file type it's
all file downloads.

The stranger thing is that I haven't made any settings changes to the IIS
box in months. I'm wondering if maybe some hotfix tweaked something. I'm
noticing other developers are seeing this same problem all of sudden. There's
one post in this group and several on the ASP.NET forums.

Any help is appreciated.

....

Response.AddHeader("content-disposition", String.Format("attachment;
filename={0}", objAsset.FileName))

Response.ContentType = objAsset.ContentType.ToString

Response.OutputStream.Write(CType(objAsset.FileData, Byte()), 0,
CInt(objAsset.FileSize))

....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,260
Messages
2,571,038
Members
48,768
Latest member
first4landlord

Latest Threads

Top