SORRY THIS FILE TYPE IS NOT PERMITTED FOR SECURITY REASONS IN WORDPRESS



Upload file .rar, .pdf, .exe any other file upload in WordPress.

This is error “sorry this file type is not permitted for security reasons”.

Since the 4.7.1 update I am no longer able to upload podcast files without getting this error. Nothing changed about how we save our audio files. The files are consistently between 5-15 Mb each. I’m able to upload images (jpg, png are ones I tested), PDF files, but audio files, it won’t work.

I’m logged in as the admin, again, nothing has changed with my workflow and how I do things, but now I’m getting this error.

I’ve googled this issue and none of the troubleshooting I have found are relevant to this version of wordpress.

Adding the following line to wp-config.php cured the error for SVGs:
define( ‘ALLOW_UNFILTERED_UPLOADS’, true );

I was able to allow the image/png MIME type by adding the following to my child theme’s functions.php:

function custom_upload_mimes( $existing_mimes=array() ) { // add png to the list of mime types $existing_mimes[‘png’] = ‘image/png’; // return the array back to the function with our added mime type return $existing_mimes; } add_filter( ‘upload_mimes’, ‘custom_upload_mimes’ );

WordPress upload audio files,
WordPress upload .PDF, .rar and other file uploading in wordpress,

Nguồn: https://kulekov.com/

Xem thêm bài viết khác: https://kulekov.com/cong-nghe/

18 thoughts on “SORRY THIS FILE TYPE IS NOT PERMITTED FOR SECURITY REASONS IN WORDPRESS

  1. Hi, I try your way but the picture is not coming out. It just show an empty file logo without the picture

  2. hi check my this issue tell me any solution this problem

    https://stackoverflow.com/questions/53844669/csv-file-not-uploading-on-wordpress/53844949?noredirect=1#comment94540441_53844949

Leave a Reply

Your email address will not be published. Required fields are marked *