fix for file_upload validation