web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Restricting attachment...
Power Apps
Answered

Restricting attachment options only to take picture in mibile devices

(0) ShareShare
ReportReport
Posted on by 38

i have been developing powerapps for my company i want to add attachments with only the take picture option , not with the choose from gallery or from files in mobile devices. how can i able to restrict the attachment control only to use the camera in the device (i dont want to use the camera control in the powerapps cause the photo it takes are 640 pixels) . i want to have higher quality picture,so i want to use the device camera

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,745 Most Valuable Professional on at

    Hi @tmpandc ,

    You can restrict it to jpg files, but there is no way of determining where they came (other than off the device somewhere)  - the Add Picture option is from your Device, not Power Apps - OnAddFile

    If(
     !EndsWith(
     Last(Self.Attachments).Name,
     "jpg"
     ),
     Notify(
     "You can only attach PDF files",
     NotificationType.Error
     );
     Reset(Self)
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • tmpandc Profile Picture
    38 on at

    thanks for the reply but is there any workaround using flows or something like that

     

  • Verified answer
    WarrenBelz Profile Picture
    155,745 Most Valuable Professional on at

    @tmpandc ,
    As I mentioned, the option for the Camera is on the Device OS - it is nothing to do with Power Apps (nor is it visible to a Flow)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard