How to check that an image come from the device camera HTML5 : I'm having a trouble a bit rare, at least for me.
The thing is that I'm developing a web site that simulates to be an mobile app (something like a web mobile first site) and to do this, I found around a method to open the device camera when the user click on a input file.

Until there, every works fine. The problem come when I open the web site on my laptop, where when I click the input file, instead of open the device camera, it open a file selector.
Also when I click the input file in some mobile devices, sometimes the following options appear: 1-select photo from the galery 2-open the camera
Which doesn't work for my proyect, due to it only can accept recent photos(taken at that moment).

Anybody knows how to control this?
Really thanks!!!