Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Allow only PDF Attachment in the PowerApps form!

Hi All, 

I am trying to prevent users from attaching any file extensions except PDF but I cannot find the right clue to do it. 


Note: I am able to do it if the user uploading only one PDF but in case of multiple files the collection read only the first one using the below formula :


Would you please help to sort this out? 

I want to use " ForAll(Colattachment, If(!EndsWith(galAttachments.Selected.Name,"pdf"),DisplayMode.Edit,DisplayMode.Disabled)

but I am getting an error. 


Thanks for the help! 

Helpful resources


Watch Sessions On Demand!

Continue your learning in our online communities.


PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Power Platform World Tour

Coming to a city near you


PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Join PowerApps User Group!!

Connect, share, and learn with your peers year-round


Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 50 members 4,256 guests
Please welcome our newest community members: