From 001c896eed47031d4b033b9df40459dd215b9e2c Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Tue, 23 Jul 2024 17:52:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B9=E6=9D=83=E9=99=90=E6=B2=A1=E6=94=B9?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20(#5919)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/api/v1/file.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/app/api/v1/file.go b/backend/app/api/v1/file.go index 70600cbaa..59abb1d41 100644 --- a/backend/app/api/v1/file.go +++ b/backend/app/api/v1/file.go @@ -356,6 +356,7 @@ func (b *BaseApi) UploadFiles(c *gin.Context) { global.LOG.Error(e) continue } + _ = os.Chown(dstDir, uid, gid) } tmpFilename := dstFilename + ".tmp" if err := c.SaveUploadedFile(file, tmpFilename); err != nil {