"Sorry, this file type is not permitted for security reasons.”
I'm developing on a localhost on a Mac (AMPPS for Mac).
When I attempt to upload a JPG exported from Photoshop, I receive the error “Sorry, this file type is not permitted for security reasons.”
I have debug turned on with no errors produced.
If I migrate the database to a remote staging server using WP Migrate DB Pro, I receive the same error on the remote staging server.
I have added the constant define('ALLOW_UNFILTERED_UPLOADS', true);
in wp-config.php
and the issue remains.
I have added the following to my theme functions.php
with no change:
function enable_extended_upload ( $mime_types =array() ) {
$mime_types['jpg'] = 'image/jpeg';
return $mime_types;
}
add_filter('upload_mimes', 'enable_extended_upload');
Changing to Twenty Seventeen does not resolve the issue.
If I deactivate all plugins the issue remains.
Reinstalling Wordpress does not resolve the issue.
How do I troubleshoot this please?
Thanks, Steve