Fix file input bug
User document.addEventListener("DOMContentLoaded", function () { const cards = document.querySelectorAll(".uploadtrigger"); const fileInputs = document.querySelectorAll(".inputFileHidden"); if (cards && fileInputs) { cards.forEach(card => { card.addEventListener("click", function () { const target = this.getAttribute("data-target"); const fileInput = document.getElementById(target); fileInput.click(); }); }); } // when file selected, start upload with progress document.querySelectorAll(".inputFileHidden").forEach(input => { input.addEventListener("change", function (e) { const file = […]