Skip to content

Commit

Permalink
fix: 解决上传文件夹权限没改的问题 (#5919)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengkunwang223 authored Jul 23, 2024
1 parent 1cf3a01 commit 001c896
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/app/api/v1/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 001c896

Please # to comment.