Skip to content

Instantly share code, notes, and snippets.

@calvinlai
Last active November 26, 2015 21:57
Show Gist options
  • Save calvinlai/ef5950f01034f5751908 to your computer and use it in GitHub Desktop.
Save calvinlai/ef5950f01034f5751908 to your computer and use it in GitHub Desktop.
ImageCapture
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTML Image/Camera upload test page</title>
</head>
<body>
<h1>HTML Image/Camera upload test page</h1>
<p>Find out more <a href="http://stackoverflow.com/questions/6336641/html5-camera-access-through-browser-in-ios">here</a></p>
<p>
<input type="file" capture="camera" accept="image/*" id="cameraInput" name="cameraInput">
</p>
<script type="text/javascript">
alert(navigator.userAgent)
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment