| | |
| | | // 文件分隔符转化为当前系统的格式 |
| | | // 文件分隔符转化为当前系统的格式 |
| | | String webPath = uploadCommonVo.getType() + uploadCommonVo.getModelPath() + DateUtil.nowDate(Constants.DATE_FORMAT_DATE).replace("-", "/") + "/"; |
| | | String destPath = FilenameUtils.separatorsToSystem(uploadCommonVo.getRootPath() + webPath) + newFileName; |
| | | String destPath = FilenameUtils.separatorsToSystem(uploadCommonVo.getRootPath() + "/" + webPath) + newFileName; |
| | | // 创建文件 |
| | | File file = UploadUtil.createFile(destPath); |
| | | |
| | |
| | | // 文件分隔符转化为当前系统的格式 |
| | | // 文件分隔符转化为当前系统的格式 |
| | | String webPath = uploadCommonVo.getType() + uploadCommonVo.getModelPath() + DateUtil.nowDate(Constants.DATE_FORMAT_DATE).replace("-", "/") + "/"; |
| | | String destPath = FilenameUtils.separatorsToSystem(uploadCommonVo.getRootPath() + webPath) + newFileName; |
| | | String destPath = FilenameUtils.separatorsToSystem(uploadCommonVo.getRootPath() + "/" + webPath) + newFileName; |
| | | // 创建文件 |
| | | File file = UploadUtil.createFile(destPath); |
| | | |