# How to refresh my flex repeater to show the updated data from the database?

**URL:** <https://forum.inductiveautomation.com/t/how-to-refresh-my-flex-repeater-to-show-the-updated-data-from-the-database/32972>\
**Category:** General Discussion\
**Tags:** perspective\
**Created:** [March 10, 2020, 2:04pm UTC](https://forum.inductiveautomation.com/t/how-to-refresh-my-flex-repeater-to-show-the-updated-data-from-the-database/32972 "2020-03-10T14:04:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ptchanchal](https://avatars.discourse-cdn.com/v4/letter/p/f9ae1b/32.png) [@ptchanchal](https://forum.inductiveautomation.com/u/ptchanchal)\
**Post date:** [March 10, 2020, 2:04pm UTC](https://forum.inductiveautomation.com/t/how-to-refresh-my-flex-repeater-to-show-the-updated-data-from-the-database/32972/1 "2020-03-10T14:04:28Z")

</div>

I have a file upload component which when file uploaded saves the image in database table. And I have a flex repeater which retrieves and show the images from that database table. Everything works fine but the only issue is that after I upload the file I have to refresh the page to see the changes in flex repeater. And i tried using polling which works fine but makes the page so slow. Is there any way that I can refresh the flex repeater instances binding when I upload the file.

Thank You.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [March 10, 2020, 2:07pm UTC](https://forum.inductiveautomation.com/t/how-to-refresh-my-flex-repeater-to-show-the-updated-data-from-the-database/32972/2 "2020-03-10T14:07:14Z")

</div>

In the `onFileReceived` Event of the File Upload component, include a call to refresh the binding of the Flex Repeater AFTER you’ve completed the database insertion.

```auto
self.getSibling('FlexRepeater').refreshBinding('props.instances')

```
