js get file from input

44

How to get input file using js -

const selectedFile = document.getElementById('input').files[0];

Comments

Submit
0 Comments