prevent invalid upload file extensions being seen as valid