Search
 
SCRIPT & CODE EXAMPLE
 

HTML

js get file from input

<input type="file" onchange="getFiles(event)" />
<script type="text/javascript">
	function getFiles(event) {
    	console.log(event.target.files)
    }
</script>
Comment

How to get input file using js

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

PREVIOUS NEXT
Code Example
Html :: svg with src in html 
:: samp html 
Html ::  
:: how to make a clickable link 
Html :: html phone link 
Html :: how to run an html file from github 
:: bluetooth headphones cutting out 
:: svg rounded corners 
::  
:: javascript change the number of range on change 
::  
Html :: bootstrap form templates 
Html ::  
::  
Html :: png favicon 
::  
Html :: embed meta tag nextjs 
::  
Html :: how do i link two pages in html 
::  
::  
:: add icon html 
::  
:: how to get data from html page using javascript 
Html ::  
Html :: how to change time in minecraft 
Html :: html table stack overflow 
Html :: slick slider pause on video play 
Html ::  
Html :: html table tag 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =