...

View Full Version : Firefox disregarding header content type



bauhsoj
06-16-2005, 05:54 PM
I have a script setup to transmit audio files listed in a database. Everything works fine with Internet Explorer but Firefox insists everytime that the file is a PHP file instead of an audio file.

For instance, if I use the following header code then IE won't have a problem but Firefox will:


header('Content-Description: File Transfer');
header('Content-type: audio/x-m4a');
header('Content-Disposition: attachment; filename=audio_sample.m4a;');
header('Content-Transfer-Encoding: binary');
header('Content-Length: 182058');


Anyone else experience this?

nikkiH
06-16-2005, 09:21 PM
Mime type?
Server mime type?
I don't see the first, and double-check the second.

bauhsoj
06-16-2005, 09:31 PM
Mime type?
Server mime type?
I don't see the first, and double-check the second.

What do you mean? The mime-type is sent in the header "Content-type: audio/x-m4a" as shown above.

delinear
06-16-2005, 10:06 PM
Try capitalising the type field, that's the correct setting although I don't know if it's causing your problem it may cause problems with some browsers.


header('Content-Type

ClubCosmic
06-16-2005, 10:28 PM
I've had that problem with mime types also. i had to use two different ones for excel for ff/ie compatability.

here is a nice list of types if you don't have one.:

http://www.webmaster-toolkit.com/mime-types.shtml

c.c.

bauhsoj
06-16-2005, 10:50 PM
Try capitalising the type field, that's the correct setting although I don't know if it's causing your problem it may cause problems with some browsers.


header('Content-Type

Tried that just now but it didn't resolve the problem. :(

bauhsoj
06-16-2005, 10:54 PM
I've had that problem with mime types also. i had to use two different ones for excel for ff/ie compatability.

here is a nice list of types if you don't have one.:

http://www.webmaster-toolkit.com/mime-types.shtml

c.c.

Thanks for the list. Oddly, there isn't an entry for "m4a".

marek_mar
06-16-2005, 11:22 PM
m4a is not very popular... can't you set the Content-Type to something else?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum