Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

DataCARD Files Selection

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:
  • iAm_ManCat Profile Picture
    iAm_ManCat 1 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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard