sdfgs
This commit is contained in:
parent
faf9ee16f8
commit
16f7f847fa
1 changed files with 3 additions and 1 deletions
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue