From fe83a9a5b64a26df1d08b537aa953d53b98836ea Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Fri, 19 Apr 2024 14:55:45 +0900 Subject: [PATCH] =?UTF-8?q?downloadable=20=EC=A7=80=EC=9B=90=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/base/file/web/DownloadView.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/cokr/xit/base/file/web/DownloadView.java b/src/main/java/cokr/xit/base/file/web/DownloadView.java index dde098d..e8518cb 100644 --- a/src/main/java/cokr/xit/base/file/web/DownloadView.java +++ b/src/main/java/cokr/xit/base/file/web/DownloadView.java @@ -103,6 +103,12 @@ public class DownloadView extends AbstractView { FileInfo fileInfo = (FileInfo)obj; return fileInfo.getName(); } + + obj = model.get("download"); + if (obj instanceof Downloadable) { + Downloadable downloadable = (Downloadable)obj; + return downloadable.getFilename(); + } return null; }