I was puzzled at first why my files weren't uploading for some users and I found out it was everyone who wasn't using chrome which was the browser I was testing.
Basically I'm doing a file check to make sure they are only able to upload mp3s.
This this was working for chrome, but not firefox.
if ($_FILES['uploaded']['type']=="audio/mp3")
This was working for firefox, but not chrome.
$_FILES['uploaded']['type']=="audio/mpeg"
Could anyone explain why this is happening? I would think both browsers would be able to understand either or... Are there any other browsers I might need to worry about touchy mime types like these?
Edit: If what Pekka suggested is true, what would be the best way to check for a certain mime type?