can I make file input and add value in HTML like below? Because it seems not working.
const videoInput = document.createElement("input");
videoInput.type = "file";
videoInput.value = videoFile;
RecordForm.appendChild(videoInput);
from this i guess it should make this *** line added. But it doesn't work.
pug file
form#RecordForm(method="POST")
input#DateInput(type="date" name="date")
label(for="title") Title:
input#TitleInput(type="text" name="title")
input(type="file" value=videoFile) ***
Instead of
videoInput.value = videoFile;
Change it to
videoInput.files.file[0] = videoFile;
Since it an input type file