HTML Media Capture

| By Webner

How to access Camera and upload the image/video to server?

We can achieve above requirements easily by using HTML Media Capture :

<form action="upload.php" method="post" enctype="multipart/form-data">

Capture Image: <input type="file" name="uploadedfile" accept="image/*" capture=”camera”>

 <input type="submit" value="Upload">


To capture Audio or Video use the following tags :

Capture Audio: <input id="capture" accept="audio/*" type="file" /> 

Capture Video: <input id="capture" accept="video/*" type="file" />

Leave a Reply

Your email address will not be published. Required fields are marked *