replace upload error alert with error message in dialog