Validation against uploading executables1

I am having a problem finding out how to prevent just .exe files from
being uploaded to my application. Right now i just have what can be
uploaded but i want it where everything can be uploaded except .exe
files.