From 4983d291e66c590a75acd4f9cf0d50e61230f6d3 Mon Sep 17 00:00:00 2001 From: wjc <2821296948@qq.com> Date: Tue, 13 Oct 2026 19:19:46 +0800 Subject: [PATCH] filelu: encode multipart init paths - fixes #10073 Co-authored-by: chaogeshuodiannao --- backend/filelu/filelu_client.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/filelu/filelu_client.go b/backend/filelu/filelu_client.go index b1908969c..be93bfe99 100644 --- a/backend/filelu/filelu_client.go +++ b/backend/filelu/filelu_client.go @@ -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}, }, }