Getting Sorry, this file type is not permitted for security reasons. error messages

Hi,
I’m trying to upload a file to a wordpress site and got the following error. what can be causing this?

Sorry, this file type is not permitted for security reasons.