From d7d9fa6494628faad1e3b0a12ed8c229edeec907 Mon Sep 17 00:00:00 2001 From: Darren Yu Date: Tue, 16 Sep 2025 11:41:42 +0800 Subject: [PATCH] Update upload.go Refactor SavePath assignment for clarity. --- pkg/filemanager/fs/dbfs/upload.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/filemanager/fs/dbfs/upload.go b/pkg/filemanager/fs/dbfs/upload.go index 63bee2da..c289617f 100644 --- a/pkg/filemanager/fs/dbfs/upload.go +++ b/pkg/filemanager/fs/dbfs/upload.go @@ -146,10 +146,7 @@ func (f *DBFS) PrepareUpload(ctx context.Context, req *fs.UploadRequest, opts .. if req.Props.SavePath == "" || isThumbnailAndPolicyNotAvailable { req.Props.SavePath = generateSavePath(policy, req, f.user) if isThumbnailAndPolicyNotAvailable { - req.Props.SavePath = fmt.Sprintf( - "%s%s", - req.Props.SavePath, - f.settingClient.ThumbEntitySuffix(ctx)) + req.Props.SavePath = req.Props.SavePath + f.settingClient.ThumbEntitySuffix(ctx) } }