This commit is contained in:
parent
8011895c88
commit
6ba25481df
@ -100,7 +100,7 @@ func (f *File) Upload(req *dci.GetUploadUrlRequest) (res *dci.GetUploadUrlRespon
|
|||||||
|
|
||||||
code, result := utils.PutFromFileUrlWithStream(tea.ToString(res.Url), fileName, req.FileName)
|
code, result := utils.PutFromFileUrlWithStream(tea.ToString(res.Url), fileName, req.FileName)
|
||||||
if code != 200 {
|
if code != 200 {
|
||||||
return res, errCommon.ReturnError(err, result, "上传文件 错误:")
|
return res, errCommon.ReturnError(errors.New(result), result, "上传文件 错误:")
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user