Capture attribute doesn't work

I try to get media from the camera using the capture attribute

 <input type="file" accept="image/*" capture>

but it opens the file manager instead of the camera. I can’t use the Cordova plug-in camera, because it returns the path of the image, but I need the file object.

How about using the Capacitor Camera? Especially in conjunction with the Capacitor Filesystem, there should be sufficient options for getting the data in some format you can work with.

thanks for the solution :slight_smile: but why capture attribute doesn’t work?