Created
August 25, 2015 13:00
-
-
Save ajaegers/838a66742124a936e28d to your computer and use it in GitHub Desktop.
Html input file for mobile devices via capture attribute
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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