dtommy79's avatar

Uploading mp3

Hi,

I have an uploader on my site where I can upload mp3 files. Sometimes the validation stops mp3 files to successfully upload. I noticed that the validation only fails when i try to upload an mp3 file with MPEG-1 Layer 3 format. Mp3 files with MPEG-2 Layer 3 format validate successfully.

I'm checking these mime types: mpga,wav,mp3

Does Laravel check the audio file format as well? Is there a way to allow MPEG-1 format to validate? I'm using Laravel 8

0 likes
1 reply
nexxai's avatar

You may need to add:

  • audio/mpeg3
  • audio/mpeg
  • audio/mpg

to the list of mime types you're checking for

Please or to participate in this conversation.