fixed upload error reporting