You need to sign in to do that
Don't have an account?
Maguy 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.
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.
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