fix: 解决上传文件夹权限没改的问题 (#5919)
Some checks failed
Build Test / build-linux-binary (push) Failing after -6m55s
Build / SonarCloud (push) Failing after -6m57s
sync2gitee / repo-sync (push) Failing after -6m58s

This commit is contained in:
zhengkunwang 2024-07-23 17:52:30 +08:00 committed by GitHub
parent 1cf3a0143c
commit 001c896eed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {