Announcements
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
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
thanks for the reply but is there any workaround using flows or something like that
@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)
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 387
timl 340 Super User 2026 Season 1
Vish WR 301