add(req-2080):创建文件夹---修改路径
This commit is contained in:
parent
39c97d649b
commit
a10a32c45e
@ -643,8 +643,8 @@ public class FileServiceImpl implements FileService {
|
||||
input = file.getInputStream();
|
||||
// 指定目标文件路径及文件名
|
||||
String rootDir = System.getProperty("user.dir");
|
||||
log.info("rootDir,{}", rootDir);
|
||||
String fileName = file.getOriginalFilename();
|
||||
/*log.info("rootDir,{}", rootDir);
|
||||
String filePath = rootDir + SEPARATOR + "temp_directory";
|
||||
log.info("filePath,{}", filePath);
|
||||
String absolutePath = filePath + SEPARATOR + fileName;
|
||||
@ -666,7 +666,9 @@ public class FileServiceImpl implements FileService {
|
||||
if (tempDirectory.exists()) {
|
||||
// 兜底
|
||||
absolutePath = tempDirectory + SEPARATOR + fileName;
|
||||
}
|
||||
}*/
|
||||
|
||||
String absolutePath = rootDir + SEPARATOR + fileName;
|
||||
log.info("临时文件夹,{}", absolutePath);
|
||||
|
||||
// 创建输出流并写入数据
|
||||
|
||||
Loading…
Reference in New Issue
Block a user