I am unable to upload documents via Mediapress if my BP Portfolio plugin is active. When I try, I get this error message:
“Sorry, this file type is not permitted for security reasons.”
I would really like to be able to use both plugins at the same time, so any help would be appreciated.
Hi Kristin,
Are you on WordPress 4.7.xWordPress 4.7.x has an issue with non image media files. It will be fixed in WordPress 4.7.3
Till then, Please try using
https://wordpress.org/plugins/disable-real-mime-check/That should make it work.
Thank you
BrajeshThanks but I tried the plugin you suggested and it still didn’t work. This seems to be a conflict with the BP Portfolio plugin as I have no problems uploading the PDF files when that plugin is deactivated.
(Just an FYI – This was mentioned in an earlier thread by another user – it was never resolved because that user decided not to use BP Portfolio).
I’m using 4.7.2.
- This reply was modified 7 years, 9 months ago by Kristin.
Hi Kristin,
Thank you.That is because the BP portfolio plugin has a lot of messy code.
Here is the code from the plugin that is causing the issue
/** * Set upload file type * * @param $mime_types * @return array */ function bpcp_myme_types($mime_types){ //Creating a new array will reset the allowed filetypes $mime_types = array( 'jpg|jpeg|jpe' => 'image/jpeg', 'gif' => 'image/gif', 'png' => 'image/png', 'bmp' => 'image/bmp', 'tif|tiff' => 'image/tiff', 'ico' => 'image/x-icon', ); return $mime_types; } add_filter('upload_mimes', 'bpcp_myme_types', 1, 1);
It simply resets all the allowed mime types. This kind of code is bound to thousand problems in future.
Please report it to them and they should be able to fix.
Regards
Brajesh
You must be logged in to reply to this topic.