修改:minio分片上传,增加有条件保存本地工作目录,临时目录优化

This commit is contained in:
yangyang01000846
2026-01-21 16:03:12 +08:00
parent 5a30c79f02
commit 73d6900fb2

View File

@@ -1171,7 +1171,7 @@ public class MinioFileIDataFileServiceImpl implements IDataFileService {
}
// 碎片目录
String tempDirPath = org.apache.commons.lang3.StringUtils.isBlank(req.getFileTempPath())?
filePath +"temp/"+timestamp+"/":req.getFileTempPath();
filePath +"temp_"+timestamp+"/":req.getFileTempPath();
// 1. 保存当前分片到临时目录 1 2 3 4 ....temp
String chunkFileName =tempDirPath+req.getChunk()+ PermConstants.CHUNK_TEMPFILE_SUFFIX;
// 片文件上传到minio