diff --git a/drivers/quark/meta.go b/drivers/quark/meta.go index f294e5999e7..dc6936238fa 100644 --- a/drivers/quark/meta.go +++ b/drivers/quark/meta.go @@ -13,7 +13,8 @@ type Addition struct { } var config = driver.Config{ - Name: "Quark", + Name: "Quark", + OnlyProxy: true, } func New() driver.Driver { diff --git a/drivers/quark/util.go b/drivers/quark/util.go index 27f2b6c5926..a97e4a79427 100644 --- a/drivers/quark/util.go +++ b/drivers/quark/util.go @@ -93,6 +93,7 @@ func (d *Quark) upPre(file model.FileStreamer, parentId string) (UpPreResp, erro "l_updated_at": now.UnixMilli(), "pdir_fid": parentId, "size": file.GetSize(), + //"same_path_reuse": true, } var resp UpPreResp _, err := d.request("/file/upload/pre", http.MethodPost, func(req *resty.Request) { @@ -208,7 +209,7 @@ x-oss-user-agent:aliyun-sdk-js/6.6.1 Chrome 98.0.4758.80 on Windows 10 64-bit var resp UpAuthResp _, err = d.request("/file/upload/auth", http.MethodPost, func(req *resty.Request) { req.SetBody(data) - }, nil) + }, &resp) if err != nil { return err }