Notifications
Clear all

Uploading file type error

4 Posts
2 Users
0 Reactions
1,004 Views
Posts: 2
Customer
Topic starter
(@drwoenl)
Member
Joined: 8 years ago

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: 6193
Admin
(@astgh)
Illustrious Member
Joined: 7 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
(@drwoenl)
Member
Joined: 8 years ago

I tried that but still get the same error

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

Illustrious Member
Posts: 6193

@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