Jump to content

Recommended Posts

I tried both of these articles, I have a windows 8.1 tablet and both of the different "codes" worked but I tried my friend's iPhone and the camera viewport is just a black square or doesn't show at all... the problem seems to be that the pop up where you push "allow" or "deny" doesn't show up at all, this makes me think the trigger isn't "triggered".

 

These are the sites

 

I'm using HTML5 and Javascript, didn't do much modifcation yet, I just needed the basic web cam access, cropping, saving functions at the moment.

 

 

http://davidwalsh.name/browser-camera

 

 

http://mycodingtricks.com/javascript/webcam-api/

Link to comment
https://forums.phpfreaks.com/topic/294312-webcamjs-iphonesafari-not-supported/
Share on other sites

I have a follow up question, if an uploads folder only has webcam upload eg. a photo directly from a webcam, is it safe to use a permission like 777 or should I stick with 766?

 

What about a folder where photos are uploaded from anywhere except the webcam?

After a quick Google I found this: http://jsfiddle.net/2wZgv/

 

It seems to work on Android, but I don't have an iOS device to test.

 

For your other question, generally you want to use the strictest permissions possible. 777 means that any user on the system can read/write/execute. Does every user need to be able to do that? No, not in most cases. Usually, only the Apache user needs only read+execute permissions on directories, and read permissions on files. Obviously if you want to be able to write within a directory then you will need write access, and/or if you want to write to a specific file you'll need write access to that file. But only the Apache user needs it.

 

There are some exceptions, like if you're running CLI scripts or CRON jobs or something.

Quick helped me with the file upload, using the "browse file" eg. input type="file" method, what I'm looking for is the webcam access which I got to work with a Windows 8.1 Tablet

 

I'll have to look into this more, god things all over the place

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.