This commit is contained in:
biglyderv 2024-11-25 14:12:43 -05:00
parent faf9ee16f8
commit 16f7f847fa

View file

@ -5,7 +5,9 @@ async function formClick(ev) {
let fData = new FormData(target); let fData = new FormData(target);
target.querySelector('input[type=file]').value = null; let file = target.querySelector('input[type=file]');
if (file)
file.value = null;
let fetched = await fetch(target.action, { let fetched = await fetch(target.action, {
'method': 'POST', 'method': 'POST',