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 Apps - Building 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 624 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 384 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 246

Last 30 days Overall leaderboard