admin管理员组文章数量:1193760
“GMT20200617-005050_123.m4a” has failed to upload. Sorry, you are not allowed to upload this file type.
The files are valid and the other items I've add to this array work properly.
Here is my code in functions.php
function my_custom_upload_mimes($mimes = array()) {
// Add a key and value for the CSV file type
$mimes['csv'] = "text/csv";
$mimes['svg'] = "image/svg";
$mimes['jfif'] = "image/jfif";
$mimes['m4a'] = "audio/m4a";
return $mimes;
}
add_action('upload_mimes', 'my_custom_upload_mimes');
They do upload properly if I add the ALLOW_UNFILTERED... #define to wp-config.php
本文标签: Why am I getting a Sorry you are not allowed to upload this file type with m4a files
版权声明:本文标题:Why am I getting a Sorry you are not allowed to upload this file type with m4a files? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738440868a2086945.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论