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 / PowerApps AddMediaWith...
Power Apps
Unanswered

PowerApps AddMediaWithImage use ONLY camera

(0) ShareShare
ReportReport
Posted on by 12

Hello everyone.

 

I'm developing a PowerApp application which is intended to run on a mobile and it's main purpose is to use device's camera to make photos and upload to SharePoint. I'm using AddMediaWithImage ("Media -> Add picture") control and while it works ok, I cannot make it use a camera by default. When clicking on it - it asks every single time "Do you want to 1) use camera or maybe 2) browse for files?". I don't want to browse for files, and don't want that option. When taking multiple photos it is really tedious to go through that dialog every single time.

 

I've found a setting "UseMobileCamera" which by default is "false", and set it to true (info from MicrosoftDocs: "Whether to use a mobile camera directly, when available"). Doesn't work, still asks me.

 

Then I thought, what if I disallow usage of files and only allow camera? Well, it goes straight to file browser and allows me select a file! Yes, you're reading it right. I cannot use camera anymore too, only browse files. The camera starts to work again when I add the permission for storage again. I've triple-checked that and debugged with other person if I'm not confusing things.

 

I don't want to use "Media -> Camera" control, because "Media -> Add picture" is superior in my opinion.

 

I'm actually pretty confused. Right now my test application consists only of AddMediaWithImage control and the behaviour is as described. PowerApps from Google Play Store are in the latest available version, I'm using an Android11 phone.

Categories:
  • WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at

    Hi @ukaszu ,

    Firstly, are you referring to the below menu?

    WarrenBelz_0-1645836108250.png

     

     

  • ukaszu Profile Picture
    12 on at

    Hello,

    Yes, as I said in the original post, it's "Media -> Add picture" producing "AddMediaWithImage" control which allows for 1) camera input and 2) browse for a file in phone's storage.

  • WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at

    @ukaszu ,

    Why not use a camera control ?

     

     

  • ukaszu Profile Picture
    12 on at

    As I said in my first post, I don't want to use "Media -> Camera" control, because "Media -> Add picture" is superior in my opinion.

  • WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at

    @ukaszu ,

    OK - I had it the wrong way around - the issue is that Add Media Default is to select a file and your device is actually being helpful suggesting the camera directly - you do not even get this option on a PC, so it has actually saved you a step or two.

     

    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.

    Visit my blog Practical Power Apps

  • ukaszu Profile Picture
    12 on at

    Ok, but Microsoft docs from github says this: (it's also in the first post)
    "UseMobileCamera" - "Whether to use a mobile camera directly, when available"

    It makes no difference if I set it to true or false (it's false by default). It asks the same question every time even when true (or false). It won't take me straight to file browsing either (if I understood your post correctly).

     

    Also, if it didn't prompt for camera and go directly to file selection it would be useless for my purpose. The problem is the user will take multiple photos, and only photos, won't select files. No need for additional clicks.

     

    The actual bug is disallowing use of storage and allowing only camera - it goes to file selection without prompt! Camera won't work it it will only allow me to select a file from the storage (with storage DISALLOWED). Crazy. Camera starts to become an option again only when storage is allowed again. It's not non-intuitive, it's broken on Android11.

  • PowerMars Profile Picture
    8 on at

    Hi @Anonymous facing same issue. Have you found a solution?

     

    - Camera Control (Best for taking quick photos) offering ONLY 640x480

    - Add Picture Control offering quality but 2 more clicks to get the photo

    - Add Picture Control Upload only one photo at time

    - Attachment Control same, only one upload at time

     

    Microsoft is really not taken it seriously as the issues are reported in many other posts years ago. It makes it hard to explain customer how god power apps is on photo requests.

  • ruoyu_wang Profile Picture
    2 on at

    Hi, i meet the same issue and just turned the "advanced" property: "UseMobileCamera" of the "AddMediaButton" to true, then when i opend my app in my iphone it went straight to camera !

  • JaouenBrieuc Profile Picture
    2 on at

    Hi everyone,

    @ruoyu_wang i'm having an issue with this exact problem, are you using you app from an IOs mobile or Tablet ?
    Cause i want my users to have the possibility to go an find a photo in their file but it is opening directly their camera device.
    This is a pretty big difference between Android and IOs users...

  • ThePianist Profile Picture
    2 on at

    Hi,

    I found a solution that probably makes sense for someone who has a deeper understanding of Power Apps, I just figured it out by chance (I wanted the same result, that users don't have the option to upload pictures but only use their camera on their mobile):

     

    If you ungroup the AddMediaWithImage group that contains the AddPicture and Image controls then it will go straight to the camera when the app is used on a mobile.

     

    That's it. 🙂 

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard