| | |
| | | } |
| | | |
| | | |
| | | @Value("${file_storage_path}") |
| | | private String fileStoragePath; |
| | | |
| | | |
| | | |
| | |
| | | |
| | | String fileName = file.getOriginalFilename(); |
| | | // String dirPath = "E:"; |
| | | String dirPath = PropertiesUtil.getString(AppConstance.FILES_TORAGE_PATH); |
| | | String dirPath = fileStoragePath; |
| | | |
| | | File saveFile = new File(dirPath + "/" + fileName); |
| | | file.transferTo(saveFile); |
| | | File saveFile =new File (new File(dirPath).getAbsolutePath() + File.separator + fileName); |
| | | if (!saveFile.exists()) |
| | | { |
| | | if (!saveFile.getParentFile().exists()) |
| | | { |
| | | saveFile.getParentFile().mkdirs(); |
| | | } |
| | | } |
| | | file.transferTo(saveFile.getAbsoluteFile()); |
| | | |
| | | SysUsers sysUsers = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | |