Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

filelu: encode multipart init paths - fixes #10073

wjc4983d291e66c
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},
},
}