Different browsers and different MIME types
Posted 01 October 2006 - 08:48 PM
IE and Netscape see the file as audio/mp3.
Opera sees the file as audio/mpeg.
FF sees the file as application/x-octet-stream.
FF is the deviant here. Has any one seen this before?
Posted 01 October 2006 - 09:55 PM
I say old chap, that is rather amusing!
Posted 02 October 2006 - 05:40 AM
Posted 02 October 2006 - 05:46 AM
Hmmm, makes it annoying to check filetypes. That makes us having to depend on the extension I guess.
Which is almost as useless as not checking filetypes at all, unfortunately. If your script is going to be published on a *nix system, then you might be able to find a way to use exec or passthru to run file on the uploaded file, but that'll only work if a) safe_mode is off, or b) safe_mode_exec_dir allows you to run programs in /usr/bin, or wherever file is located on that particular host. Which is rather unlikely.
Posted 02 October 2006 - 03:22 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users