修改:minio分片上传,增加有条件保存本地工作目录,临时目录优化
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user