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 {