|
@@ -207,7 +207,7 @@ public class LargeFileEndpoint {
|
|
// 获取文件路径
|
|
// 获取文件路径
|
|
/**Windows文件路径要加在哪个盘**/
|
|
/**Windows文件路径要加在哪个盘**/
|
|
// String filePath = "D:/www/wwwroot/Users/hongchuangyanfa/Desktop/Desktop/ceshi";
|
|
// String filePath = "D:/www/wwwroot/Users/hongchuangyanfa/Desktop/Desktop/ceshi";
|
|
- String filePath ="D:" +ParamCache.getValue(CommonConstant.SYS_LOCAL_URL)+"largeFile/";
|
|
|
|
|
|
+ String filePath =ParamCache.getValue(CommonConstant.SYS_LOCAL_URL)+"largeFile/";
|
|
// 创建文件夹
|
|
// 创建文件夹
|
|
// getAbsoluteFile(filePath, fileName);
|
|
// getAbsoluteFile(filePath, fileName);
|
|
// new File(filePath, fileName);
|
|
// new File(filePath, fileName);
|
|
@@ -350,7 +350,7 @@ public class LargeFileEndpoint {
|
|
* 构建上传完整目录
|
|
* 构建上传完整目录
|
|
*/
|
|
*/
|
|
private String buildUploadDir() {
|
|
private String buildUploadDir() {
|
|
- String fullDir ="D:" +ParamCache.getValue(CommonConstant.SYS_LOCAL_URL)+"largeFile/";
|
|
|
|
|
|
+ String fullDir =ParamCache.getValue(CommonConstant.SYS_LOCAL_URL)+"largeFile/";
|
|
File dir = new File(fullDir);
|
|
File dir = new File(fullDir);
|
|
if (!dir.exists()) {
|
|
if (!dir.exists()) {
|
|
dir.mkdirs();
|
|
dir.mkdirs();
|