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:
@@ -10,6 +10,7 @@ import (
|
||||
"github.com/HFO4/cloudreve/pkg/filesystem/qiniu"
|
||||
"github.com/HFO4/cloudreve/pkg/filesystem/remote"
|
||||
"github.com/HFO4/cloudreve/pkg/filesystem/response"
|
||||
"github.com/HFO4/cloudreve/pkg/filesystem/upyun"
|
||||
"github.com/HFO4/cloudreve/pkg/request"
|
||||
"github.com/HFO4/cloudreve/pkg/serializer"
|
||||
"github.com/gin-gonic/gin"
|
||||
@@ -175,6 +176,11 @@ func (fs *FileSystem) dispatchHandler() error {
|
||||
HTTPClient: request.HTTPClient{},
|
||||
}
|
||||
return nil
|
||||
case "upyun":
|
||||
fs.Handler = upyun.Driver{
|
||||
Policy: currentPolicy,
|
||||
}
|
||||
return nil
|
||||
default:
|
||||
return ErrUnknownPolicyType
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user