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

Power Apps Attachment

(0) ShareShare
ReportReport
Posted on by 19

Hi All,

I'm working on a App and looking forward to provide the ability to allow the users to upload attachments(PDF Only). When user clicks on upload icon, It should list out pdf files only from local drive. How to achieve this?

Categories:
I have the same question (0)
  • Akser Profile Picture
    1,546 Moderator on at

    Hi @Anbu01,

     

    Did you follow a guide and got stuck somewhere or is it a generic question? If the latter, I would watch some videos on this topic to understand the basics: https://www.youtube.com/results?search_query=powerapps+attachment 

  • Anbu01 Profile Picture
    19 on at

    Hi @Akser 

    No, I didn't stuck anywhere. I just added the attachment control. When user clicks on upload icon It should show PDF(*.pdf) instead of 'all files'. 

    Anbu01_0-1675772640396.png

     

  • Akser Profile Picture
    1,546 Moderator on at

    @Anbu01, I see.

    I'm afraid I don't know a way to determine the type of files to show (in your case PDF) when you click 'Attach file'. You can however show an error message IF the user tries to attach anything other than a PDF, not sure if that is acceptable for you. 

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

    @Anbu01 ,

    There is no way of changing the filter in the Open File dialogue from Power Apps, however you can ensure that the user only attaches PDF files - put this on the OnAddFile property of the Attachment Control

    If(
     Last(
     Split(
     Last(Self.Attachments).Name,
     "."
     )
     ).Result <> "pdf",
     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

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard