Try changing the file rules line to:
$file_rules = array('audio_file' => 'size:5242880|mimes:audio/mpeg,audio/mp3,audio/mpeg3');
According to this , "audio / mpeg" is the correct MIME type for mp3 files (some browsers also use "audio / mpeg3" or "audio / mp3",).
If this does not work, you can get the MIME type before checking:
$file = Input::file('audio_file'); $mimeType = $file->getMimeType(); $supportedTypes = ['audio/mpeg', 'audio/mpeg3', 'audio/mp3']; if (in_array($mimeType, $supportedTypes)) { // validate or simply check the file size here } else { // do some other stuff }
source share