AI Assistant
Notifications
Clear all

Uploading file type error

4 Posts
2 Users
0 Reactions
1,969 Views
Posts: 2
Customer
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@drwoenl)
Member
Joined: 9 years ago
[#7071]

Since the update to 7.0.3, the Media Uploader addon does not allow any user to upload a file with the m4a extension. Upon attempting to do so, I get the default "Not allowed file type" message.

I tried putting the following code in the current active theme functions.php file, but it still doensn't work

add_filter("upload_mimes", function ($t, $u) {
if (empty($t["m4a"])) {
$t["m4a"] = "audio/x-m4a";
}
return $t;
}, 10, 2);

3 Replies
Astghik
Posts: 6645
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@astgh)
Illustrious Member
Joined: 8 years ago

@drwoenl,

Please navigate to Dashboard > wpDiscuz > Settings > Comment Content and Media admin page make sure the "m4a" checkbox is checked in the "Allowed File Types" section, then remove the code you've added in the functions.php file, delete all caches and check again. 


Reply
Posts: 2
Customer
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@drwoenl)
Member
Joined: 9 years ago

I tried that but still get the same error


Reply
1 Reply
Astghik
Admin
(@astgh)
Joined: 8 years ago

Illustrious Member
Posts: 6645
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@drwoenl,

Please send the admin login details with your website URL to info[at]gvectors.com email address. I'll ask the developers to check the issue for you. 


Reply
Share:
Scroll to top