fup: clear the file input when we start the upload

This prevents the back button from upload the same files *again*.
This commit is contained in:
Luke Granger-Brown 2021-03-22 19:33:03 +00:00
parent 75afddacc4
commit 48be007f79

View file

@ -117,6 +117,7 @@ if (document.body.classList.contains('upload-page')) {
uploadFile(file, expiryEl.value);
}
inputFileEl.value = null;
});
document.body.addEventListener('dragenter', (e) => {