Skip to content

Commit

Permalink
fix(quark): upload commit bind resp
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Sep 6, 2022
1 parent f127c95 commit e076542
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion drivers/quark/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ type Addition struct {
}

var config = driver.Config{
Name: "Quark",
Name: "Quark",
OnlyProxy: true,
}

func New() driver.Driver {
Expand Down
3 changes: 2 additions & 1 deletion drivers/quark/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit e076542

Please sign in to comment.