sdfgs
This commit is contained in:
parent
491db52614
commit
301eca08ea
1 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,9 @@ async function formClick(ev) {
|
|||
|
||||
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, {
|
||||
'method': 'POST',
|
||||
|
|
Loading…
Reference in a new issue