Skip to content
Permalink
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>
<html>
<head>
<title>File upload example with accept</title>
<style>
div {
margin-bottom: 10px;
}
</style>
</head>
<body>
<form>
<div>
<label for="profile_pic">Choose file to upload</label>
<input type="file" id="profile_pic" name="profile_pic" accept=".jpg, .jpeg, .png">
</div>
<div>
<button>Submit</button>
</div>
</form>
<script>
var test = document.querySelector('input');
</script>
</body>
</html>
You can’t perform that action at this time.