42 Posts
Elric
4 years ago
2
Topic

Hello!
I'd need to find a way to let the form accept the input from the camera, like in

<input type="file" accept="image/*" capture="camera" />
Is there a way to do it? I see that this plugin could be useful

https://www.seblod.com/19-seb-marketplace/plug-ins/plugins-field/50651-upload-jquery-5-plug-ins

but I think that it doesn't solve the issue at all, any suggestion or anyone that could work on this?
I have some other tasks to accomplish and I'd be glad to have someone from this community to work with me, if possible,

Thanks,

R.

Get a VIP membership
6 Posts
AlbertoV
3 years ago
1
Level 1

Hi Elric,

you have to use the "Upload Image" field. With this field, when you tap on "Select File" button, the device ask if you want take a picture with the camera or select one from the gallery.

42 Posts
Elric
3 years ago
0
Level 2

Hello! thank you for the advice, I almost forgot about this, I managed to solve just adding

accept="image/*" capture="camera" /
on the custom attributes, this way it works also when you have a file upload and not an image.

Get a VIP membership