diff --git a/backend/app/api/v1/file.go b/backend/app/api/v1/file.go index 70600cbaacf7..59abb1d419ed 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 {