Announcements
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?
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
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, 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.
@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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 358 Most Valuable Professional
11manish 214 Super User 2026 Season 2
Mohsin Ali 185