Feat: async monitor OneDrive resume upload progress

This commit is contained in:
HFO4
2020-01-21 11:49:46 +08:00
parent dd5f6e3d25
commit 6aee31341f
8 changed files with 321 additions and 59 deletions

View File

@ -180,7 +180,8 @@ func (policy *Policy) GetUploadURL() string {
var controller *url.URL
switch policy.Type {
case "local":
case "local", "onedrive":
server = GetSiteURL()
controller, _ = url.Parse("/api/v3/file/upload")
case "remote":
controller, _ = url.Parse("/api/v3/slave/upload")