Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript file on select

document.querySelector('input[name="file"]').addEventListener('change', (e) => {
 const file = e.target.files[0];
  // todo: use file pointer
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #file #select
ADD COMMENT
Topic
Name
6+1 =