diff --git a/libs/filer/workspace_files_client.go b/libs/filer/workspace_files_client.go index bb49090e..ff813f09 100644 --- a/libs/filer/workspace_files_client.go +++ b/libs/filer/workspace_files_client.go @@ -54,7 +54,7 @@ func (w *WorkspaceFilesClient) Write(ctx context.Context, name string, reader io overwrite := slices.Contains(mode, OverwriteIfExists) urlPath := fmt.Sprintf( "/api/2.0/workspace-files/import-file/%s?overwrite=%t", - url.QueryEscape(strings.TrimLeft(absPath, "/")), + url.PathEscape(strings.TrimLeft(absPath, "/")), overwrite, )