mirror of https://github.com/1Panel-dev/1Panel
fix: 修复分块上传文件资源未释放问题 (#5109)
parent
f211b6b5ae
commit
3df8863904
|
@ -609,7 +609,7 @@ func mergeChunks(fileName string, fileDir string, dstDir string, chunkCount int)
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
defer targetFile.Close()
|
||||
for i := 0; i < chunkCount; i++ {
|
||||
chunkPath := filepath.Join(fileDir, fmt.Sprintf("%s.%d", fileName, i))
|
||||
chunkData, err := os.ReadFile(chunkPath)
|
||||
|
|
Loading…
Reference in New Issue