# FileUpload Reset

**URL:** <https://forum.inductiveautomation.com/t/fileupload-reset/69728>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 11, 2023, 3:42am UTC](https://forum.inductiveautomation.com/t/fileupload-reset/69728 "2023-02-11T03:42:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyler\_Folsom](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@Tyler\_Folsom](https://forum.inductiveautomation.com/u/Tyler_Folsom)\
**Post date:** [February 11, 2023, 3:42am UTC](https://forum.inductiveautomation.com/t/fileupload-reset/69728/1 "2023-02-11T03:42:57Z")

</div>

Hello Again,

I cannot figure out how to clear the file upload option on command. The problem that occurs in the project is that after the user saves their data, the file upload icon does not refresh back to the default icon we have chosen which looks like this image.

![Default Icon](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/1/11bec9f91c347b8c0693dfb38247efa0aef9082d.png)

After uploading a file, there an "Upload Successful!" message that appears and a green checkmark.  
Here is an image of what I am attempting to describe.

![Clear Uploads](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/7/f70c22a20bbb10eaf4cc13b69b223371df3357f7.png)

I would like to reset that with a line of code just like what would happen if the user clicked on that refresh circle the red arrow is pointing at. By clicking on that circle, the user would then see the following image again (the default icon).

![After Clearing Upload](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/1/513028590784aa272111bd1afd75d89b8b97c6c9.png)

In other words, how can I write code that does what the refresh circle option does?

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:** [February 11, 2023, 5:13pm UTC](https://forum.inductiveautomation.com/t/fileupload-reset/69728/2 "2023-02-11T17:13:26Z")

</div>

Documentation: [Perspective - File Upload - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/Perspective+-+File+Upload#:~:text=.-,clearUploads,-())

---

<div class="post-metadata">

**Author:** ![Tyler\_Folsom](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@Tyler\_Folsom](https://forum.inductiveautomation.com/u/Tyler_Folsom)\
**Post date:** [February 11, 2023, 5:42pm UTC](https://forum.inductiveautomation.com/t/fileupload-reset/69728/3 "2023-02-11T17:42:17Z")

</div>

Man! I read through the documentation before posting but never considered concatenating ".clearUploads(). to the end of the of "self.getSibling("FileUpload")"

Final solution looks like self.getSibling("FileUpload").clearUploads()

I am sorry to have wasted folks' time. Maybe someone will find this post useful in the future.  
Thank you for pointing me back to the documentation!!

---

<div class="post-metadata">

**Author:** ![Andrew\_Buldyzhov](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrew_buldyzhov/32/74246_2.png) [@Andrew\_Buldyzhov](https://forum.inductiveautomation.com/u/Andrew_Buldyzhov)\
**Post date:** [May 8, 2025, 11:39am UTC](https://forum.inductiveautomation.com/t/fileupload-reset/69728/4 "2025-05-08T11:39:40Z")

</div>

Here's a simpler version:

```python
self.clearUploads()

```

---

<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:** [May 8, 2025, 5:46pm UTC](https://forum.inductiveautomation.com/t/fileupload-reset/69728/5 "2025-05-08T17:46:58Z")

</div>

> [@Andrew\_Buldyzhov](#):
>
> `self.clearUploads()`

This only works within scripts that belong to the File Upload component. The original post was regarding how to use some _external_ actor/component to reset the File Upload component, where that external or sibling component would need to reference the File Upload in order to act on it.
