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

Posts: 636
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!
 
 
When You Register, These Ads Go Away!
Old 09-16-2005, 10:23 AM
funkdaddu's Avatar
Web Design Snob

Posts: 636
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.08389 seconds with 13 queries