첨부파일 다운로드시 원본 파일명에 "," 가 포함된 경우 "_"로 변환하여 다운로드 되도록 변경 - 관리자 파일 다운로드시 오류가 발생하여 변경 처리 함.
- 관리자 파일 다운로드시 오류가 발생하여 변경 처리 함.
@de4b06c09a7c833d7b9e3ce1b66007827291bc5c
--- src/main/java/itn/com/cmm/web/EgovFileDownloadController.java
+++ src/main/java/itn/com/cmm/web/EgovFileDownloadController.java
... | ... | @@ -158,7 +158,8 @@ |
| 158 | 158 |
String mimetype = "application/x-msdownload"; |
| 159 | 159 |
|
| 160 | 160 |
response.setContentType(mimetype); |
| 161 |
- setDisposition(fvo.getOrignlFileNm(), request, response); |
|
| 161 |
+ //String orignlFileNm = fvo.getOrignlFileNm().replace(",", "_");
|
|
| 162 |
+ setDisposition(fvo.getOrignlFileNm().replace(",", "_"), request, response);
|
|
| 162 | 163 |
//response.setContentLength(fSize); |
| 163 | 164 |
|
| 164 | 165 |
BufferedInputStream in = null; |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?