By default, *.exe files cannot be uploaded in WordPress and WooCommerce due to security reasons. To be able to upload *.exe files, you need to add the following code snippet to your site:
// Allow uploading *.exe files.
function enable_extended_upload ( $mime_types ) {
$mime_types['exe'] = 'application/exe';
return $mime_types;
}
add_filter('upload_mimes', 'enable_extended_upload');
To add this code to your site, you could use the Code Snippets plugin.
Alternatively to adding the code snippet to your site, you could also install the WP Add Mime Types plugin to your site, which deactivate all upload restrictions at once.
?? In both cases, please deactivate the code snippet or the plugin, once you have uploaded the *.exe file, so that your site remains secure.
]]>*.exe files have been blocked from being uploaded to WordPress by default for a long time.
Perhaps you already had the exemption in place on whatever site you were able to upload to previously.
I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.
]]>