Laravel keep rejecting m4a audio format, how to fix it?
问题 For the life of me, I just cannot figure out how to allow m4a audio file to pass through with laravel validation $this->validate($request,[ 'audio' => 'required|mimes:mpga,mp3,mp4a,aac,m4a' ]); The mp3, mpeg files can be uploaded successfully, but just keep rejecting m4a. Anyone know which mime type should I include? To be clear, I'm looking for the guess extension of Audio/x-m4a. All of these (m4a, mp4a, mp4, aac) does not seem to work. Thanks 回答1: For Laravel 5.4, try this: Change mimes to