I wrote a php script that uploads a file. The upload script checks against a database that contains "acceptable" file extensions. For example, the database contains a list of acceptable extensions such as .jpg, .gif, .png.
If someone attempts to upload a .exe file, for example, they receive an error message and the upload is halted before it starts.
It works well. Now, I am just looking for some opinions of those who are security conscious. I am wondering what types of files should be generally avoided in order to decrease the opportunity for a successful hack. For example, on Windows, I would imagine preventing the upload of a .exe file is a good idea.
Can you suggest any other extensions for a paranoid person to avoid?