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 / Attachment control On ...
Power Apps
Unanswered

Attachment control On Canvas app to upload image and documents

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I want add attachment control on the canvas app to uploads document like shown in the screenshot and show those document names. Please suggest all the steps.

 

Regards,

Nandan

attachmentcontrol.PNG
Categories:
I have the same question (0)
  • SkiDK Profile Picture
    1,016 on at

    Hi @Anonymous 

    Where do you want to upload it to? SharePoint? SQL?

     

    Ski

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @SkiDK  Yes, I want to upload it to SharePoint list.

  • SkiDK Profile Picture
    1,016 on at

    For that you will have to use a form. There's no other way currently to upload and show attachments from SharePoint. 

    Capture.PNG

    If you add a form, link it to your SharePoint list and add the field 'Attachments' in edit fields. In the 'Item' property of the form, you can add the certain item for which you want to show or edit attachments. For example if you have a gallery with SharePoint items (from the same SharePoint list), you can do:

     

    Item: gallerySharePointListItems.Selected

     

    This way it will show the attachments of the selected item that are in the list. If you want to add an attachment, you can then  for example in a button submit the form:

     

    SubmitForm(frmAttachmentsSharePointList)

     

    You can of course add multiple fields to update multiple fields in the list.

    However, the way I rather do it is with a form with solely only the attachment as field and use Patch instead. This gives you more control on the updates. When you want to edit the item and attachments to the item, you can do it like next:

     

    Patch(
     'CP Notes_1',
     LookUp('CP Notes_1', ID = varCurrentNote.ID),
     {
     Title: cbNoteTeamEdit.Selected.Value & " - " & Match( Concat( cbNoteContextEdit.SelectedItems, Value & ", " ), "^(?<trim>.*), $" ).trim,
     Team: cbNoteTeamEdit.Selected,
     Tags: cbNoteContextEdit.SelectedItems,
     Country: varCurrentCountry,
     Region: varCurrentRegion,
     Notes: rteNoteBodyEdit.HtmlText 
     },
     frmNoteAttachmentCPEdit.Updates
     ); 

     

    In the patch you can see first I update the ordinary fields of the list where I have more control in what I put into the list. After this I add the form and tell it to update the attachments with: 

     

    frmAttachmentsSharePointList.Uodates

     

    And then it adds the attachments to the correct item in the SharePoint list. 

    I hope this helps. Let me know if you have more questions.

    Ski

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard