function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Maguy Fogaing 2Maguy Fogaing 2 

enable camera when import file on mobile

Hello everyone,
I hope you are well. I am working to upload file in my LWC component. I need to enable camera of the mobile phone as an option so that when the user click on upload file he can take a picture with the camera and automatically upload the image. 
Below is an example of what l want to do.
All your suggestions are welcome. 

Please l need your help. 
Thank you in advance.

User-added image
PriyaPriya (Salesforce Developers) 
Hey,

Check these 2 examples :- 
1. https://salesforce.stackexchange.com/questions/335441/access-device-camera-from-lwc
2. https://salesforcecodex.com/salesforce/capture-image-using-webcam-in-lightning-component/

Regards,
Priya Ranjan