|
|
@ -898,7 +898,7 @@ public class CollectController extends Controller {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!FileUtil.exist(basePath)) FileUtil.mkdir(basePath);
|
|
|
|
if (!FileUtil.exist(basePath)) FileUtil.mkdir(basePath);
|
|
|
|
String file_id = UUID.randomUUID().toString().toUpperCase();
|
|
|
|
String file_id = UUID.randomUUID().toString().toUpperCase();
|
|
|
|
String filePath = basePath + file_id + "." + suffix;
|
|
|
|
String filePath = basePath+File.separator + file_id + "." + suffix;
|
|
|
|
uf.getFile().renameTo(new File(filePath));
|
|
|
|
uf.getFile().renameTo(new File(filePath));
|
|
|
|
//计算文件大小
|
|
|
|
//计算文件大小
|
|
|
|
String file_size = FileSizeUtil.getAutoFileOrFilesSize(filePath);
|
|
|
|
String file_size = FileSizeUtil.getAutoFileOrFilesSize(filePath);
|
|
|
|