mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-11-22 00:38:34 +08:00
fix: 解决上传文件夹权限没改的问题 (#5919)
This commit is contained in:
parent
1cf3a0143c
commit
001c896eed
1 changed files with 1 additions and 0 deletions
|
|
@ -356,6 +356,7 @@ func (b *BaseApi) UploadFiles(c *gin.Context) {
|
||||||
global.LOG.Error(e)
|
global.LOG.Error(e)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
_ = os.Chown(dstDir, uid, gid)
|
||||||
}
|
}
|
||||||
tmpFilename := dstFilename + ".tmp"
|
tmpFilename := dstFilename + ".tmp"
|
||||||
if err := c.SaveUploadedFile(file, tmpFilename); err != nil {
|
if err := c.SaveUploadedFile(file, tmpFilename); err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue