Fix: wrong upload URL for cos policy
This commit is contained in:
parent
d0718433bc
commit
45ec4b3f8b
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ func (policy *Policy) GetUploadURL() string {
|
|||
case "oss":
|
||||
return "https://" + policy.BucketName + "." + policy.Server
|
||||
case "cos":
|
||||
return policy.BaseURL
|
||||
return policy.Server
|
||||
case "upyun":
|
||||
return "http://v0.api.upyun.com/" + policy.BucketName
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue