You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add define(‘ALLOW_UNFILTERED_UPLOADS’, true);
to your wp-config.php
but, there is a problem in the latest wordpress that requires super-admin privs for it to work.
There’s probably a db entry for file types allowed anyway (well it should to be compatible with standard coding practices) but if you want a quick fix, backup the file *capabilities.php (in the wp-includes directory) and make these changes if you want it to work and are only logged in as admin.
find the unfilter_upload section and change to:
case ‘unfiltered_upload’:
if ( defined(‘ALLOW_UNFILTERED_UPLOADS’) && ALLOW_UNFILTERED_UPLOADS && ( !is_multisite() || is_super_admin( $user_id ) ) )
$caps[] = $cap;
else
/* temporary removed this for work around
$caps[] = ‘do_not_allow’;
and changed to this after comments
*/
$caps[] = $cap;
break;
the wp_config.php change mentioned previously will work after that.
!!Just back up the files first incase you make a mistake!!
Hey. When you import an error occurs.
What could it be?
=== Sorry, this file type is not allowed for safety reasons. ===
The text was updated successfully, but these errors were encountered: