I'm using this link
This one looks a lot better but may be the same thing
What I'm concerned about is the data_uri, also the url upload
So the webcam works, shows my face, whatever, but I push this
<a href="javascript:void(take_snapshot())">Take Snapshot</a>
and nothing happens. I see the little grey box at the bottom left saying javascript:void(take_snapshot()) I'm wondering if I'm supposed to put a parameter...
There can be several problems, I am using domain mapping and the folder may be pointed incorrectly or it could be a file permission problem, I did chown with www-data
This is the upload.php as suggested or rather given by the first link
<?php
// be aware of file / directory permissions on your server
move_uploaded_file($_FILES['webcam']['tmp_name'], '/tabdater/uploads/webcam'.md5(time()).rand(383,1000).'.jpg');
?>
I'd appreciate any help.
Aucun commentaire:
Enregistrer un commentaire