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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to accept Xlsx fil...
Power Apps
Answered

How to accept Xlsx file only in attachment column and it should not accept same file with same file name in Powerapps

(0) ShareShare
ReportReport
Posted on by 61

Hi Everyone I am new to Powerapps Please help me in this situation I have edit form in edit form i have attachment column my requirement is in attachment column it should have only accept xlsx files and it should not have accept same file with same file name

if user try to upload the attachment column should get reset . Please help me anyone

 

I have used this formula its not working

 

With({type:Last(Split(Last(DataCardValue147_1.Attachments).Name,".")).Value},

If(IsBlank(Find(type,".xlsx")),Notify("Only Xlsx files are allowed");Reset(DataCardValue147_1)))

 

 

Thanks and Regards

 

Argus

Categories:
I have the same question (0)
  • VishalJhaveri Profile Picture
    1,167 Moderator on at

    I don't think it is possible.

    If my answer helps you, please mark it as solution.

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @Argus_1234,

    Just set the OnAddFile property of the DataCardValue147_1 as below:

    If(Not(EndsWith(First(Self.Attachments).Name, ".xlsx")),Notify("Only xlsx files are allowed", NotificationType.Error); Reset(Self))

    Add to avoid it should not have accept same file with same file name, please check this thread:

    Solved: Restricting duplicates in attachments control. - Power Platform Community (microsoft.com)

  • Argus_1234 Profile Picture
    61 on at

    Hi @v-qiaqi-msft Thanks for your Solution But Duplicate Attachments issue not resolved i am getting  error in duplicate attachments formula . Please help me

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard