Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Closed Thread
Content-Disposition does nto work for Firefox?
Old 09-16-2005, 09:14 AM Content-Disposition does nto work for Firefox?
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
Hey, I'm using Response.BinaryWrite(Buffer) to securely serve files. When I tried to serve MP3 files, they were being downloaded on IE 6 on Windows, they would be downloaded without an extension and name. So I added:
Code:
Response.Addheader("Content-Disposition", "attachment; filename=" & getFile)
where getFile is the name of the file being served.

But in FireFox, it still downloads the file as "01" with no extension. Anyone know what I can add to make FireFox know that the binarystream being downloaded is an MP3? Thanks.
funkdaddu is offline
View Public Profile Visit funkdaddu's homepage!
 
 
Register now for full access!
Old 09-16-2005, 09:23 AM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
I figured it out... firefox doesn't like spaces in the name when you do that, I took them out with Replace(getFile, " ", "_").
funkdaddu is offline
View Public Profile Visit funkdaddu's homepage!
 
Closed Thread     « Reply to Content-Disposition does nto work for Firefox?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11004 seconds with 11 queries