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 : ch5eBhFBHd8HaIEnf6muwX
Power Apps - Building Power Apps
Unanswered

Restrict file type in file Upload window

Like (0) ShareShare
ReportReport
Posted on 1 Oct 2023 10:59:56 by 504

I have a powerapp new form with SharePoint as the datasource. In the newform, documents which user uploads in attachment control gets stored in document library.

 

The attachment field only allows ppt/doc file types. I have added a validation for the same in attachment control.

 

I also need to restrict the same in Upload Document screen, where user cant even upload other file types. May i know how to achieve this? Screenshot included below. Instead of All Files, it should only show PPT or docx

 

Iantaylor2050_0-1696157883232.png

 

 

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,213 Super User 2025 Season 2 on 01 Oct 2023 at 13:42:42
    Re: Restrict file type in file Upload window

    Hi @Iantaylor2050 , @AhmedSalih is correct. There is no such OOB feature. Please check this: https://powerusers.microsoft.com/t5/Building-Power-Apps/Allow-only-some-file-types-as-attachments/td-p/469316

    https://www.youtube.com/watch?v=Ef2wUeIO6A8

     

    ------------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.

    Thanks,
    ANB

  • AhmedSalih Profile Picture
    6,678 Moderator on 01 Oct 2023 at 11:48:30
    Re: Restrict file type in file Upload window

    Hello, @Iantaylor2050, there is no OOB control you can use to achieve this. If you are using the attachment control to attach the files, you can use the Find function to look for the file extension that you want to allow and based on that you can disable or enable the save button. 

     


    If my reply helped you, please give a 👍 If it solved your issue, please give a 👍 & accept it as the Solution to help other community members find it more.

    Visit my Blog: ahmedsalih.blog

    Visit my YouTube Channel: https://www.youtube.com/@powerplatformplace/videos

    Microsoft Business Application MVP 

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…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 917 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 387 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 334 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete