mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Feat: generate upload credentials for upyun
This commit is contained in:
@@ -182,6 +182,8 @@ func (policy *Policy) GetUploadURL() string {
|
||||
controller, _ = url.Parse("/api/v3/slave/upload")
|
||||
case "oss":
|
||||
return policy.BaseURL
|
||||
case "upyun":
|
||||
return "http://v0.api.upyun.com/" + policy.BucketName
|
||||
default:
|
||||
controller, _ = url.Parse("")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user