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 / Attachments control re...
Power Apps
Unanswered

Attachments control remove button bug?

(0) ShareShare
ReportReport
Posted on by 10

Hello. I am using file upload controls to upload multiple files by attaching them. When I click the submit button, it uploads all the contents currently in the attached file control.

The current issue is that when I click the remove button, it removes the content above it instead of the intended content. Is this a bug? Since the file attachments only change when the submit button is clicked, I am not concerned about data loss. However, from the user's perspective, it might be confusing and frustrating if the content removed is not the one they intended to delete. I couldn't find any information on this, so I'm posting this question here.

dduddu_1-1706859505217.png

dduddu_2-1706859513729.png

 

What I deleted is designer.jpeg, but something else has been erased

 

Categories:
I have the same question (0)
  • v-yueyun-msft Profile Picture
    on at

    Hi , @dduddu 

    According to your description, you click the "Delete Button" in attachments control, it remove the previous file in the attachment.

    I test it in my side , it works good in my side without your situation.

    vyueyunmsft_0-1706860536964.png

    Can you try to re-create the Form to test if still contains the issue ? And dose you modify the property of the Attachment control.

    vyueyunmsft_1-1706860593746.png

     

    Best Regards,

    Yueyun Zhang

  • dduddu Profile Picture
    10 on at

    dduddu_3-1706863117861.png

    dduddu_2-1706863106528.png

    dduddu_4-1706863151617.png

    Thank you for your response. When I recreate it, it works well during editing, but the same issue arises when applying the data.

    I am currently using PowerApps with customizations to enable editing when editing a list in SharePoint. During this process, there seems to be an issue with loading existing files when editing, which may be contributing to the problem.

     

  • v-yueyun-msft Profile Picture
    on at

    Hi , @dduddu 

    As the attachments control contains four columns :

    vyueyunmsft_0-1706863946440.png

    Can you try to put the same structure in the items to test.

    For more information, you can refer to :
    https://www.youtube.com/watch?v=pI8saVXEDE4 

     

    Best Regards,

    Yueyun Zhang

  • dduddu Profile Picture
    10 on at

    dduddu_0-1707094685346.png

    If there's only this column available and the item you want to display is in a SharePoint library, how can you retrieve it?

  • dduddu Profile Picture
    10 on at

    Providing the column value didn't resolve the issue.

  • v-yueyun-msft Profile Picture
    on at

    Hi , @dduddu 

    In your screenshot, can you try to replace the items to your Collection:

    vyueyunmsft_0-1707099017496.png

    When you click the button , you can use the ClearCollect() function to reset the collection. 

    ClearCollect(colAttaches,DataCardValue6.Attachments);

     

    Best Regards,

    Yueyun Zhang

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard