• Resolved projecttoday

    (@projecttoday)


    I have a WordPress site with Download Monitor. I used to be able to upload a .exe file onto the site for download but now when I try this I get a message saying this file type is not accepted. This has happened since getting a new computer with Windows 10 (using Windows 7 previously) and also since getting a new site host company. (Not sure if either of these is the cause.) I can’t upload the exe file even with virus protect (Windows Defender) turned off. Is it possible to upload an exe file on WordPress/Download Monitor? What do I need to do?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Please note that .exe files are not allowed to be uploaded to WordPress. This restriction is set within WordPress software and not in our plugin. To learn more about changing this, please check https://www.download-monitor.com/kb/changing-allowed-file-types-in-wordpress/.

    Thread Starter projecttoday

    (@projecttoday)

    This is very strange because it was working a couple of months ago and I don’t remember doing anything special to get it to work.

    Hey @projecttoday,

    I agree this is odd. This could be caused by a WordPress core update or changes done by your host. Does the link Harish shared solve the issue for you?

    Kind Regards,

    Barry Kooij

    Thread Starter projecttoday

    (@projecttoday)

    Do you mean adding this code to functions.php?

    add_filter('upload_mimes','add_custom_mime_types');
    	function add_custom_mime_types($mimes){
    		return array_merge($mimes,array (
    			'ac3' => 'audio/ac3',
    			'mpa' => 'audio/MPA',
    			'flv' => 'video/x-flv',
                            'svg' => 'image/svg+xml'
    		));
    	}

    How do you modify it for .exe? It advises not to change functions.php. It says that it is dangerous plus you will lose the change when you upgrade. But it offers an alternative via “Custom CSS”. I managed to find “Custom CSS”. It’s a little box on the left-hand side of the screen near the bottom, if I was at the right place. Is that where you put the code?

    I’m leaning toward just going with the .zip file. Seems unfortunate since the .exe was working.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can no longer upload exe file to site’ is closed to new replies.