: -> . 으로 수정
This commit is contained in:
@@ -116,12 +116,12 @@ class GetAttachmentController {
|
||||
sftpFileDownloader.downloadFile(getFile);
|
||||
} catch (JSchException | SftpException | IOException e) {
|
||||
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR)
|
||||
.body("SFTP 파일 다운로드에 실패했습니다: " + e.getMessage());
|
||||
.body("SFTP 파일 다운로드에 실패했습니다 " + e.getMessage());
|
||||
}
|
||||
File downloadedFile = new File(getFile.getLocalPath());
|
||||
if (!downloadedFile.exists()) {
|
||||
return ResponseEntity.status(HttpStatus.NOT_FOUND)
|
||||
.body("다운로드된 파일을 찾을 수 없습니다: " + getFile.getLocalPath());
|
||||
.body("다운로드된 파일을 찾을 수 없습니다 " + getFile.getLocalPath());
|
||||
}
|
||||
|
||||
return ResponseEntity.ok()
|
||||
|
||||
@@ -124,7 +124,7 @@ root: /*[[|#{uri.front.info.user.path}/password|]]*/'rootUrl',
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Download error:', error);
|
||||
ajaxUtil._alert('파일 다운로드에 실패했습니다: ', null);
|
||||
ajaxUtil._alert('파일 다운로드에 실패했습니다. ', null);
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user