Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (25 sloc) 490 Bytes
<!DOCTYPE html>
<title>File upload example with accept</title>
div {
margin-bottom: 10px;
<label for="profile_pic">Choose file to upload</label>
<input type="file" id="profile_pic" name="profile_pic" accept=".jpg, .jpeg, .png">
var test = document.querySelector('input');
You can’t perform that action at this time.