!38 返回绝对路径

Merge pull request !38 from xlongwei/N/A
This commit is contained in:
若依
2021-01-17 12:02:21 +08:00
committed by Gitee

View File

@@ -110,7 +110,7 @@ public class FileUploadUtils
desc.getParentFile().mkdirs(); desc.getParentFile().mkdirs();
} }
} }
return desc; return desc.isAbsolute() ? desc : desc.getAbsoluteFile();
} }
private static final String getPathFileName(String fileName) throws IOException private static final String getPathFileName(String fileName) throws IOException