web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / DataCARD Files Selection
Power Apps
Unanswered

DataCARD Files Selection

(0) ShareShare
ReportReport
Posted on by 49

How can I select what type of files I can add to the DataCard? With the command:

 

Form1.Updates

 

formulalrzdjecia.png

 

I add all files to the SharepointList, but how can I specify only graphic files?

Categories:
I have the same question (0)
  • iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at
    Re: DataCARD Files Selection

    You can't specify exactly, but you can prevent submission while there are any files that don't match the types you want.

     

    I would have a label underneath the attachment control and then use that to display whether there are any non-allowed file types, then you make your submit button only enabled if that label has no text in it

     

    For the label, I would use something like:

    If(
     CountRows(
     Filter(
     DataCardValue38.Attachments, 
     Right(Name, 3) <> "jpg"
     &&
     Right(Name, 3) <> "bmp"
     &&
     Right(Name, 3) <> "png"
     &&
     Right(Name, 3) <> "gif"
     &&
     Right(Name, 3) <> "webp"
     )
     ) > 0,
     "There are non-image files in your attachments, please remove these in order to continue"
    )

     

    Cheers,

    Sancho

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 836 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 231 Super User 2025 Season 2

Last 30 days Overall leaderboard