|
@@ -72,11 +72,11 @@ abstract class AbstractAipService {
|
|
|
|
|
|
protected ResponseFile responseFileException(Exception exception, String displayFileName) {
|
|
|
log.error("responseFileException: {}", exception.getMessage());
|
|
|
- return new ResponseFile(109, "작업 중에 시스템 오류가 발생했습니다.", displayFileName);
|
|
|
+ return new ResponseFile(109, "파일 작업 중에 시스템 오류가 발생했습니다.", displayFileName);
|
|
|
}
|
|
|
protected ResponseStream responseStreamException(Exception exception, String displayFileName) {
|
|
|
log.error("responseFileException: {}", exception.getMessage());
|
|
|
- return new ResponseStream(109, "작업 중에 시스템 오류가 발생했습니다.", displayFileName);
|
|
|
+ return new ResponseStream(109, "파일 스트림 작업 중에 시스템 오류가 발생했습니다.", displayFileName);
|
|
|
}
|
|
|
|
|
|
private ResponseBase responseBase(SetFileInfo fileInfo, String displayFileName, String actualFileName) {
|
|
@@ -118,7 +118,6 @@ abstract class AbstractAipService {
|
|
|
}
|
|
|
|
|
|
protected ResponseInfo responseGetFileInfo(AipFileInfo fileInfo, String displayFileName) {
|
|
|
- //log.error("{}", fileInfo);
|
|
|
boolean isLabled = false;
|
|
|
boolean isProtected = false;
|
|
|
Date creationTime = TimeUtils.getCurrentDate();
|
|
@@ -183,14 +182,12 @@ abstract class AbstractAipService {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
- //String saveFileName = AipFileUtils.getFileNameWithoutExtension(dispFileName) + AipFileUtils.getExtension(dispFileName);
|
|
|
String saveFileName = apiGuid + AipFileUtils.getExtension(dispFileName);
|
|
|
Path fileStorageLocation = Paths.get(this.repo.getSettings().getSourceFileDir()) .toAbsolutePath().normalize();
|
|
|
|
|
|
result.setDispFileName(dispFileName);
|
|
|
result.setSaveFileName(saveFileName);
|
|
|
|
|
|
- //log.error("{}, {}", dispFileName, saveFileName);
|
|
|
Path targetLocation = fileStorageLocation.resolve(saveFileName);
|
|
|
try {
|
|
|
Files.copy(file.getInputStream(), targetLocation, StandardCopyOption.REPLACE_EXISTING);
|