1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 08:19:15 +08:00

fix: 解决上传文件夹权限没改的问题 (#5919)

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 {