diff --git a/src/main/java/cokr/xit/fims/cmmn/hwp/format/HWPFormat.java b/src/main/java/cokr/xit/fims/cmmn/hwp/format/HWPFormat.java index e5612e18..f3a70cf8 100644 --- a/src/main/java/cokr/xit/fims/cmmn/hwp/format/HWPFormat.java +++ b/src/main/java/cokr/xit/fims/cmmn/hwp/format/HWPFormat.java @@ -83,9 +83,10 @@ public abstract class HWPFormat { } } - result.put("filename", downlaodFileName); - result.put("filePath", resultFilesPath.get(0)); - result.put("file", new File(resultFilesPath.get(0))); + String resultFilePath = resultFilesPath.get(0); + HWPFile resultFile = HWPWriter.filepath(resultFilePath); + writer = new HWPWriter(resultFile); + result.put("download", writer.getDownloadable().setFilename(downlaodFileName)); result.put("downloadData", data); result.put("dataNames", getDownloadDataNames());