From a2a484daba1ef42d82f596a989caf203ee9a370f Mon Sep 17 00:00:00 2001 From: MrArmonius Date: Fri, 30 Jul 2021 00:04:17 +0200 Subject: Add profile image front-end and back-end Correct when empty result The image showed when the result was empty. Now if the `dn == ""` then we write in the column image just `""` --- static/javascript/minio.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 static/javascript/minio.js (limited to 'static/javascript/minio.js') 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 + }) -- cgit v1.2.3