refactor(用例管理): 获取转换文件的权限

This commit is contained in:
guoyuqi 2024-08-09 11:18:02 +08:00 committed by 刘瑞斌
parent 8444bb920a
commit c567ee5bb7
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ public class MsFileUtils {
if (file != null && file.getSize() > 0) {
try (InputStream ins = file.getInputStream()) {
validateFileName(file.getOriginalFilename());
File toFile = new File(Objects.requireNonNull(file.getOriginalFilename()));
File toFile = new File(FileUtils.getTempDirectoryPath()+"/"+Objects.requireNonNull(file.getOriginalFilename()));
inputStreamToFile(ins, toFile);
return toFile;
} catch (Exception e) {