I am trying to upload MP3 files for a site running EE 4.3.8. When I upload via FTP and sync it in file manager I get the following error:
The file type you are attempting to upload is not allowed.
Would appreciate some help on this.
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It only takes a minute to sign up.Sign up to join this community
Have you tried uploading it via a file or Asset field, or the file manager?
Looking at this leads me to this file:
which leads me to:
which has a whitelist of mime types the upload class will allow. I do see these lines in the whitelist:
'audio/mpeg', // .mp2, .mp3, .mpga 'audio/mpg', // .mp3
I'm not sure if the file sync is using that whitelist or not (one would assume it is), but check that list and try uploading via the Control Panel and not via S/FTP.
If it is a specific MP3 file and not others, try and make other services recognize the mime type as