# Is clearUploads() of FileUpload component working?

**URL:** <https://forum.inductiveautomation.com/t/is-clearuploads-of-fileupload-component-working/97041>\
**Category:** Ignition\
**Created:** [October 9, 2024, 5:31pm UTC](https://forum.inductiveautomation.com/t/is-clearuploads-of-fileupload-component-working/97041 "2024-10-09T17:31:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramiro\_Ramirez](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@Ramiro\_Ramirez](https://forum.inductiveautomation.com/u/Ramiro_Ramirez)\
**Post date:** [October 9, 2024, 5:31pm UTC](https://forum.inductiveautomation.com/t/is-clearuploads-of-fileupload-component-working/97041/1 "2024-10-09T17:31:41Z")

</div>

Hi,

I'm trying to use clearUploads() in a Button Click Event just to clear the component appearance but is not resetting the component.

I'm new at programming but I read that the line to use it is:  
self.getSibling("FileUpload").clearUploads()

Maybe the problem is the syntax, if so please let me know how to declare it.

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [October 9, 2024, 5:45pm UTC](https://forum.inductiveautomation.com/t/is-clearuploads-of-fileupload-component-working/97041/2 "2024-10-09T17:45:47Z")

</div>

Are you testing in the designer? It doesn't work in the designer for me but does in the browser.

---

<div class="post-metadata">

**Author:** ![Ramiro\_Ramirez](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@Ramiro\_Ramirez](https://forum.inductiveautomation.com/u/Ramiro_Ramirez)\
**Post date:** [October 9, 2024, 5:49pm UTC](https://forum.inductiveautomation.com/t/is-clearuploads-of-fileupload-component-working/97041/3 "2024-10-09T17:49:21Z")

</div>

Yes that was the problem, I just tested in the browser and it worked.

Thank you!
