mirror of
https://github.com/Dangoware/confetti-box.git
synced 2025-04-19 23:32:58 -05:00
Fixed file upload on click
This commit is contained in:
parent
fa8d4bc289
commit
5f66f02734
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ const ERROR_TEXT = "Error!";
|
|||
|
||||
async function formSubmit() {
|
||||
const form = document.getElementById("uploadForm");
|
||||
const files = form.elements["fileUpload"].value;
|
||||
const files = form.elements["fileUpload"].files;
|
||||
const duration = form.elements["duration"].value;
|
||||
const maxSize = form.elements["fileUpload"].dataset.maxFilesize;
|
||||
|
||||
|
|
Loading…
Reference in a new issue