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

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Upload a picture

(0) ShareShare
ReportReport
Posted on by 206

Hello,

Could someone tell me how I can use an icon on my power app to upload a picture to my app and then patch it to a column in a sharepoint list.  Ideally, I'd like to click a + icon and then it will open an Explorer type window and allow me to choose the picture from say Windows Explorer.  Once the pic is showing in my Powerapp and I have added all of the other information I need I want to be able to press a button and add (patch) the picture to my Sharepoint list with the other information on my data capture form.  I have no idea where to begin with this so any help would be greatly appreciated.
Thanks

Categories:
I have the same question (0)
  • RiccoHipp1903 Profile Picture
    284 on at
    Re: Upload a picture

    1. Include SharePoint-Form for grabbing the Attatchment

    2. Copy the Attatchment and Paste it outside the form

    3. Delete the form because you don't need it how you describe it

     

    4. Add an Icon 

    5. Add Code to the OnSelect Property that either makes the attatchements control visible/navigate to there or anything else so that the user can interact with the attatchment control

    6. Adjust the properties of the Attatchment control to Max Files 1

    7. Insert a Image Control with the Code to reference the Uploaded Picture

    Last(Attatchment.Attachments).Value

     8. Make a Patch Function and the Image could be

    Patch(
     Testlist,
     Defaults(Testlist),
     {
     Title:"Patch PowerAppS", 
     Image: Image1.Image
     }
    )
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at
    Re: Upload a picture

    Hi @Station1901,

    I will suggest you use the AddPicture control to upload image and a Image column in SP list to save the image.

    Here is a simple demo, please check for details:

    1). create an Image column

    2). add the AddPicture, once you click the "Tap or click to add a picture", you could upload picture from the Windows Explorer.

    3). add a save button and set the Patch() as below:

    Patch(Fruits,Defaults(Fruits),{Title:"",ImageColumn:UploadedImage1.Image})

    vqiaqimsft_0-1691569466503.png

    Here is the testing result:

    vqiaqimsft_1-1691569588738.png

     

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 766 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 419 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 235

Last 30 days Overall leaderboard