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/
Xem thêm Bài Viết:
- Kinh nghiệm cá cược Euro 2021 hiệu quả tới 99% cho các tân binh
- ASRock ra mắt đầy đủ các dòng bo mạch chủ Intel 500 Series với các tính năng tốt nhất trong phân khúc
- Hướng dẫn hạ cấp iOS 10.x xuống 8.4.1 bằng Tweak Downgrade by FTiOS
- Đánh giá Sony Xperia ZR Docomo – Hàng HOT dưới 2 triệu
- Photo CMND giấy phép lái xe 2 mặt trên 1 tờ giấy A4
txn..a lot
Thanks 🙂
Didnt work
thank you very very ery muchhhhhhhhhhhhhhhhhhhh
tnx
THANK YOU VERY MUCH…
Great effort
I can't upload images webP … same msg error … help me please !!!
Hi, I try your way but the picture is not coming out. It just show an empty file logo without the picture
WORKED 🙂 THANK YOU
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
thanks dear, if it is dangerous what is the next job.
THANK YOU VERY MUCH…
music is good
thank you. works for me
Great. Thx for Video!!
I don't know why WordPress is NOT making any effort to correct this!!!
This solution is dangerous and creates a security vulnerability