Skip to content

Instantly share code, notes, and snippets.

@ajaegers
Created August 25, 2015 13:00
Show Gist options
  • Save ajaegers/838a66742124a936e28d to your computer and use it in GitHub Desktop.
Save ajaegers/838a66742124a936e28d to your computer and use it in GitHub Desktop.
Html input file for mobile devices via capture attribute
<!-- as seen on http://openweb.eu.org/articles/html-media-capture -->
<form action="index.php" method="post" enctype="multipart/form-data">
<input type="file" name="image" accept="image/*" capture />
<input type="file" name="video" accept="video/*" capture />
<input type="submit" value="Upload" />
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment