cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

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 :

If(!EndsWith(galAttachments.Selected.Name,"pdf"),DisplayMode.Edit,DisplayMode.Disabled)

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! 

1 REPLY 1
Highlighted
Post Partisan
Post Partisan

Re: Allow only PDF Attachment in the PowerApps form!

Hi @Hassan-Elkhouli 

Did you ever get this to work?

I too have the same requirement of only allowing users to upload PDF file(s).

What property did you set this fx on, I've tried on DisplayMode but get errors:

If(!EndsWith(galAttachments.Selected.Name,"pdf"),DisplayMode.Edit,DisplayMode.Disabled)

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (8,487)