Fix error with uploaded file extensions