Small security check for uploaded files.