How can I push a file to an input (file type) element using the files property ?
element2.files.push(element.files[0]);
The code above give me an error:
TypeError: element2.files.push is not a function
The source can be datatransfer from drag and drop or another input.