-2

I am making a project in php and want to use webcam and upload photo directly by clicking on it.

It's showing me

You have denied camera access.

Look for camera icon around your address bar to change your decision.

I enabled it from chrome setting but still it showing same error.

Krzysztof Janiszewski
  • 3,763
  • 3
  • 18
  • 38
vivek modi
  • 800
  • 2
  • 7
  • 23

1 Answers1

0

You must have an ssl certificate (https://) in order to use webcam. If you test it on localhost you can create self-signed certificate for test purposes.

Here is some info on how to do that using openssl.

Krzysztof Janiszewski
  • 3,763
  • 3
  • 18
  • 38