I\'m trying to decide which mime type to choose for returning mp3 data (served up by php)
according to this listing of mime types: http://www.webmaster-toolkit.com/m
Your best bet would be using the RFC defined mime-type audio/mpeg
.
Use .mp3 audio/mpeg
, that's the one I always used. I guess others are just aliases.
You should always use audio/mpeg, because firefox cannot play audio/mpeg3 files
The standard way is to use audio/mpeg
which is something like this in your PHP header function ...
header('Content-Type: audio/mpeg');
I had a problem with mime types and where making tests for few file types. It looks like each browser sends it's variation of a mime type for a specific file. I was trying to upload mp3 and zip files with open source php class, that what I have found:
So if you need several file types to upload, you better make some tests so that every browser could upload a file and pass mime type check.