Skip to content

Instantly share code, notes, and snippets.

@thewarpaint
Created February 6, 2018 13:12
Show Gist options
  • Save thewarpaint/6df0c2ab52667e218e29674641634009 to your computer and use it in GitHub Desktop.
Save thewarpaint/6df0c2ab52667e218e29674641634009 to your computer and use it in GitHub Desktop.
Document upload
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
</head>
<body>
<h1>Document upload!!</h1>
<p>Generic input file field</p>
<pre>
&lt;input type="file">
</pre>
<input type="file">
<hr />
<p>Accept image files</p>
<pre>
&lt;input type="file" accept="image/*">
</pre>
<input type="file" accept="image/*">
<hr />
<p>Accept image files, hint for camera</p>
<pre>
&lt;input type="file" accept="image/*" capture>
</pre>
<input type="file" accept="image/*" capture>
<hr />
<p>Accept image files, hint for forward-facing camera</p>
<pre>
&lt;input type="file" accept="image/*" capture="environment">
</pre>
<input type="file" accept="image/*" capture="environment">
<hr />
<p>Accept image files, hint for user-facing camera</p>
<pre>
&lt;input type="file" accept="image/*" capture="user">
</pre>
<input type="file" accept="image/*" capture="user">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment