aboutsummaryrefslogtreecommitdiff
path: root/static/javascript/minio.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/javascript/minio.js')
-rw-r--r--static/javascript/minio.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/static/javascript/minio.js b/static/javascript/minio.js
new file mode 100644
index 0000000..cea2a18
--- /dev/null
+++ b/static/javascript/minio.js
@@ -0,0 +1,5 @@
+document.querySelector('.custom-file-input').addEventListener('change',function(e){
+ var fileName = document.getElementById("image").files[0].name;
+ var nextSibling = e.target.nextElementSibling
+ nextSibling.innerText = fileName
+ })