maghiel
02-28-2007, 03:04 PM
Well not truly a PHP issue, but it comes close :)
I'm uploading mp3 files and ofcourse checking the MIME type, and I would
expect that the MIME type would be audio/mpeg or audio/x-mpeg.
But, instead of that it recognizes the mp3 file as application/octet-stream.
How can that be? I deffinetly not want to allow that type as it would create a mayor security issue. checking for extension is also no option; that's easely bypassed.
Does it have something to do with de ID3v2 information in the beginning of the file? i know octet has got something to do with 7-bit stuff, and in ID3v2 tags are syncsave using 7-bit bytes.
Hope anyone could help!
thnx!
I'm uploading mp3 files and ofcourse checking the MIME type, and I would
expect that the MIME type would be audio/mpeg or audio/x-mpeg.
But, instead of that it recognizes the mp3 file as application/octet-stream.
How can that be? I deffinetly not want to allow that type as it would create a mayor security issue. checking for extension is also no option; that's easely bypassed.
Does it have something to do with de ID3v2 information in the beginning of the file? i know octet has got something to do with 7-bit stuff, and in ID3v2 tags are syncsave using 7-bit bytes.
Hope anyone could help!
thnx!