Fixing response problem in sendUploadError.