Camera Code for Webpage

Is there code I can use so that when a user browses a page on my website the camera is activated and they can take a picture?
LVL 12
Nathan RileyFounderAsked:
Who is Participating?
I presume you want to target tablets that have a camera built in?

This should just work out of the box when you design a basic html form containing at least one input of type "file"

<form method="post" enctype="multipart/form-data">
<input type="file"/>

Open in new window

Nathan RileyFounderAuthor Commented:
Ah, didn't know it was something so simple :)  Thanks!
Ray PaseurCommented:
There might be a little more to it...  This link seems spot on.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.