filelu: encode multipart init paths - fixes #10073

Co-authored-by: chaogeshuodiannao <chaogeshuodiannao@users.noreply.github.com>
This commit is contained in:
wjcandchaogeshuodiannao authored and GitHub committed 2026-10-13 12:19:46 +01:00
1 parent d8640943b8
commit 4983d291e6
1 file changed
+5 -2
+5 -2
View File
@@ -16,13 +16,16 @@ import (
// multipartInit starts a new multipart upload and returns server details.
func (f *Fs) multipartInit(ctx context.Context, folderPath, filename string) (*api.MultipartInitResponse, error) {
encodedFolderPath := f.fromStandardPath(folderPath)
encodedFilename := f.fromStandardPath(filename)
opts := rest.Opts{
Method: "GET",
Path: "/multipart/init",
Parameters: url.Values{
"key": {f.opt.Key},
"filename": {filename},
"folder_path": {folderPath},
"filename": {encodedFilename},
"folder_path": {encodedFolderPath},
},
}