-1
I’m creating a form and I want to get his name. I already used filereader, tried to use it but could not. I did it in a way that shows the file data in an array, but I don’t know how to get the name of this array
<script>
const fileSelector = document.getElementById('images');
fileSelector.addEventListener('change', (event) => {
const fileList = event.target.files;
console.log(fileList);
});
</script>
Thank you, you helped me a lot.
– GobsRuiz