fix(baidu_baidu_netdisk): override for create (close #3242)

pull/3231/head
Andy Hsu 2023-02-03 18:10:39 +08:00
parent 080e6fb22a
commit d89b1d4871
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ func (d *BaiduNetdisk) create(path string, size int64, isdir int, uploadid, bloc
params := map[string]string{
"method": "create",
}
data := fmt.Sprintf("path=%s&size=%d&isdir=%d", encodeURIComponent(path), size, isdir)
data := fmt.Sprintf("path=%s&size=%d&isdir=%d&rtype=3", encodeURIComponent(path), size, isdir)
if uploadid != "" {
data += fmt.Sprintf("&uploadid=%s&block_list=%s", uploadid, block_list)
}