mirror of https://github.com/1Panel-dev/1Panel
parent
1cf3a0143c
commit
001c896eed
|
@ -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…
Reference in New Issue