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 / Attachment Control Cac...
Power Apps
Unanswered

Attachment Control Caching Previous Upload Data

(1) ShareShare
ReportReport
Posted on by 2

I am having an issue with the desktop version of an application vs. the web version. The application has an attachment control, from which files are uploaded from a user's machine to a Sharepoint folder using a power automate flow. The files are passed into the flow using the "contentBytes" and "name" fields that can be taken from the attachment control. The files are passed with unique names to the power automate flow.

 

The issue occurs when two files with the same name are uploaded, but with different content. Ie. The image is edited. The same content is passed through to the flow, only when using the desktop version. The web version does not have this issue. I think that the local version is caching the contentBytes somehow, and when it sees a file with the same name and extension reuploaded, it looks up the previously cached file. 

 

Some things I've tried: 

  • There is a "ClearData()" function that clears locally cached data, but this solution has not worked for me. I am at no point using "saveData()", so I guess this makes sense
  • I have reset the control both before and after calling the flow
  • I've refreshed all related datasets
  • I turned this "new" setting on and off: 

  • In my flow, the naming of each item is unique since it is passed into the flow from powerapps with a unique name already, so I'm confident the flow is not the issue here

I've read through all the available functions built into powerapps and about the attachment controls fields. Does anyone have any other ideas for what I could do here to clear the cached data? 

Categories:
I have the same question (0)

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