mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 11:35:21 +08:00
premiumizeme: fix server side move after API change
See: https://forum.rclone.org/t/premiumize-cant-move-files/27169 See: #5734
This commit is contained in:
parent
f85e3209b3
commit
af705c754c
|
@ -653,10 +653,11 @@ func (f *Fs) move(ctx context.Context, isFile bool, id, oldLeaf, newLeaf, oldDir
|
|||
"id": {newDirectoryID},
|
||||
},
|
||||
}
|
||||
opts.MultipartParams.Set("items[0][id]", id)
|
||||
if isFile {
|
||||
opts.MultipartParams.Set("files[]", id)
|
||||
opts.MultipartParams.Set("items[0][type]", "file")
|
||||
} else {
|
||||
opts.MultipartParams.Set("folders[]", id)
|
||||
opts.MultipartParams.Set("items[0][type]", "folder")
|
||||
}
|
||||
//replacedLeaf := enc.FromStandardName(leaf)
|
||||
var resp *http.Response
|
||||
|
|
Loading…
Reference in New Issue
Block a user