If you are getting error while uploading exe file or anyother blocked files.
Follow the steps below to upload the files
Open Central Administration
in the Operation Tab
open the option Blocked file types
Remove the exe (extension) in the list & delete also from the web applications blocked file types list.
You can remove the blocked extesnsions