From 96766399f24828b09ee5b93c81f331db4724d635 Mon Sep 17 00:00:00 2001 From: leebj Date: Mon, 8 Jul 2024 16:19:49 +0900 Subject: [PATCH] =?UTF-8?q?upload-support=20=EA=B2=BD=EB=A1=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/jsp/include/tail.jsp | 2 +- .../resources/js/base/upload-support.js | 23 ------------------- 2 files changed, 1 insertion(+), 24 deletions(-) delete mode 100644 src/main/webapp/resources/js/base/upload-support.js diff --git a/src/main/webapp/WEB-INF/jsp/include/tail.jsp b/src/main/webapp/WEB-INF/jsp/include/tail.jsp index a291a8a4..b9960687 100644 --- a/src/main/webapp/WEB-INF/jsp/include/tail.jsp +++ b/src/main/webapp/WEB-INF/jsp/include/tail.jsp @@ -22,7 +22,7 @@ - + diff --git a/src/main/webapp/resources/js/base/upload-support.js b/src/main/webapp/resources/js/base/upload-support.js deleted file mode 100644 index 0340eb87..00000000 --- a/src/main/webapp/resources/js/base/upload-support.js +++ /dev/null @@ -1,23 +0,0 @@ -function uploadSupport(selector) { - let input = $(selector); - if (!input) - throw "Element not found: " + selector; - - let fileset = new Dataset({ - keymapper: info => info.id - }); - - input.change(function() { - var files = $(this).get(0).files, - length = files.length, - array = [] - for (var i = 0; i < length; ++i) { - var file = files[i]; - file.id = "file-" + new Date().getTime() + "-" + i; - file.url = (window.URL || window.webkitURL).createObjectURL(file); - array.push(file); - } - fileset.setData(array); - }); - return fileset; -} \ No newline at end of file