Answers for "input image type"

11

git ignore file mode changes

git config core.fileMode false
Posted by: Guest on April-30-2020
0

how to see which file git recognizes

git ls-tree -r master --name-only
Posted by: Guest on September-27-2020
21

accept only image files upload html

<input type="file" name="myImage" accept="image/x-png,image/gif,image/jpeg" />
Posted by: Guest on February-19-2020
7

input type="file" and display image

<p><input type="file"  accept="image/*" name="image" id="file"  onchange="loadFile(event)" style="display: none;"></p>
<p><label for="file" style="cursor: pointer;">Upload Image</label></p>
<p><img id="output" width="200" /></p>

<script>
var loadFile = function(event) {
	var image = document.getElementById('output');
	image.src = URL.createObjectURL(event.target.files[0]);
};
</script>
Posted by: Guest on June-08-2020
2

input img

<input type="image" src="..." alt="...">
Posted by: Guest on July-14-2020

Browse Popular Code Answers by Language