0

my intent is to prevent users from accessing pictures in their camera library of their mobile phone while uploading images to Salesforce. I have run out of luck so thought will check in here to see if there are any options to prevent access to the mobile camera/photo library from a lightning component.

I have a lightning component where I tried using the below three options but did not find any option to prevent access to the mobile photo library.

  • lightning:fileUpload
  • lightning:input type="file"
  • input type="file"

Any thoughts on how I can achieve this?

  • Prevent access to their library/gallery as opposed to what, uploading fresh images? – sfdcfox Mar 3 '18 at 5:36
  • @sfdcfox I would like to force the users to use a custom Android app that is built specifically for taking images. The reason is that we don't want images to be stored on end user's mobile phones so by forcing the user to pick an image from only the custom Android app and not the mobile phone's library, it will ensure that the user is always using the custom app. – DCBoy Mar 4 '18 at 2:09
0

Check out the MySalesforce product and other ways of managing via MDM.

  • The community is built using partner central template and as of now, templates are not available on Salesforce1 (MySalesforce). – DCBoy Mar 5 '18 at 12:37
0

you can limit the allowed file extensions with the accept attribute - when you set accept=".txt" the user shouldn't be able to add photos from his album

  • Yes that is possible though it does not prevent me from using a photo from the mobile photo library. – DCBoy Mar 5 '18 at 12:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.