From 2b1d1de798c21b31a14b4ad38dbd951714cde9b0 Mon Sep 17 00:00:00 2001 From: zouap Date: Tue, 15 Nov 2022 10:23:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/repo/attachment_model.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/repo/attachment_model.go b/routers/repo/attachment_model.go index 6ed35a602..63d755d8c 100644 --- a/routers/repo/attachment_model.go +++ b/routers/repo/attachment_model.go @@ -270,6 +270,7 @@ func NewModelMultipart(ctx *context.Context) { return } } else { + objectName = strings.TrimPrefix(path.Join(Model_prefix, path.Join(modeluuid[0:1], modeluuid[1:2], modeluuid, fileName)), "/") uploadID, err = storage.NewObsMultiPartUpload(objectName) if err != nil {