
Originally Posted by
akamenov
Is there any simple way (possibly just by editing httpd.conf) to allow not authorized users to ask me to take only low-res pictures? Or maybe to notify me what kind of photo does someone want to see?
Sorry, currently I don't think there's any way to achieve that by editing httpd.conf.
Because, you see, there is kind of difference between 300k and 3M photos...
I see your point.
The whole camera demo is rather rigid at the moment as there's just the hardwired /camera and /webcam locations, the former asking for verification, the latter not.
How would the following sound?
Code:
<location /anything>
set-handler camera
[CameraMode [auto|manual]
[CameraFormat ...]
[PictureSize ...]
</location>
That is, the URL would not be hardwired and you could either explicitly define the format (colordepth) and size or let the one asking for a picture specify them. Then you could have:
Code:
<location /anonymous_camera>
set-handler camera
CameraMode manual
CameraFormat 128
PictureSize 1
<location>
<location /camera>
set-handler camera
CameraMode manual
Require valid-user
<location>
<location /webcam>
set-handler camera
CameraMode auto
Require akamenov
</location>
That is, in this case /anonymous_camera does not require a known user, but the colordepth and picturesize is hardwired and cannot be specified by the user, /camera requires a known user and he/she is allowed to specify the format, and /webcam can only be used by you and in that case the picture is simply taken without any prompts on the phone display.
Would this provide you with what you want?