check for file upload error