refiking Posted November 5, 2008 Share Posted November 5, 2008 I got a snippet on how to verify an image file, but don't know how to change this to mp3. Here's what I have: if (!($uploaded_type=="image/gif")) { echo "You may only upload GIF files.<br>"; $ok=0; } I've tried audio/mp3 and sound/mp3 and neither one worked Link to comment https://forums.phpfreaks.com/topic/131439-how-do-i-code-mp3-file-type-on-upload-script/ Share on other sites More sharing options...
blueman378 Posted November 5, 2008 Share Posted November 5, 2008 try audio/mpeg-3 Link to comment https://forums.phpfreaks.com/topic/131439-how-do-i-code-mp3-file-type-on-upload-script/#findComment-682695 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.