Leer ficheros locales

PHOTO EMBED

Mon Apr 25 2022 09:00:11 GMT+0000 (UTC)

Saved by @arivasgran #html

<!-- The `multiple` attribute lets users select multiple files. -->
<input type="file" id="file-selector" multiple>
<script>
  const fileSelector = document.getElementById('file-selector');
  fileSelector.addEventListener('change', (event) => {
    const fileList = event.target.files;
    console.log(fileList);
  });
</script>
content_copyCOPY

Leer ficheros desde el navegador

https://web.dev/read-files/