Minor fix to the file upload validation