# \[Feature-16560\] External Clean or Reset of uploaded files on component File Upload - Perspective

**URL:** <https://forum.inductiveautomation.com/t/feature-16560-external-clean-or-reset-of-uploaded-files-on-component-file-upload-perspective/35061>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 26, 2020, 9:43pm UTC](https://forum.inductiveautomation.com/t/feature-16560-external-clean-or-reset-of-uploaded-files-on-component-file-upload-perspective/35061 "2020-05-26T21:43:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![caritoel27](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/caritoel27/32/3430_2.png) [@caritoel27](https://forum.inductiveautomation.com/u/caritoel27)\
**Post date:** [May 26, 2020, 9:43pm UTC](https://forum.inductiveautomation.com/t/feature-16560-external-clean-or-reset-of-uploaded-files-on-component-file-upload-perspective/35061/1 "2020-05-26T21:43:46Z")

</div>

Hello,  
I need help please, to clean the files of my File Upload component through an external button in the view and not from the internal refresh button that the component has.

If you can help me how to do it please

Cheers  
Carolina

---

<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 26, 2020, 10:57pm UTC](https://forum.inductiveautomation.com/t/feature-16560-external-clean-or-reset-of-uploaded-files-on-component-file-upload-perspective/35061/2 "2020-05-26T22:57:46Z")

</div>

Just some clarification:  
Are you just attempting to reset the appearance of the component so that it looks like it did before you uploaded the files, or are you trying to do something with the files themselves after they’ve been uploaded?

---

<div class="post-metadata">

**Author:** ![caritoel27](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/caritoel27/32/3430_2.png) [@caritoel27](https://forum.inductiveautomation.com/u/caritoel27)\
**Post date:** [May 27, 2020, 3:25pm UTC](https://forum.inductiveautomation.com/t/feature-16560-external-clean-or-reset-of-uploaded-files-on-component-file-upload-perspective/35061/3 "2020-05-27T15:25:00Z")

</div>

It is a form filling for list of records that includes the possibility of attaching files, in case the user decides to cancel the entire action for the entire form, through a cancel button I need to clean the form fields and if the user attached any file with the File Upload component. I need to clean or empty the files that the user may have attached so that when he wants to perform the action again he will not find the File Upload with attached files.

---

<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 27, 2020, 4:55pm UTC](https://forum.inductiveautomation.com/t/feature-16560-external-clean-or-reset-of-uploaded-files-on-component-file-upload-perspective/35061/4 "2020-05-27T16:55:58Z")

</div>

Okay. As of right now the only way to change the displayed state of the File Upload component is to manually click the reset/refresh icon or reload the page. I’ve opened a feature ticket to provide a component method which would allow for resetting the displayed state on the front-end. This should allow for resetting the component to its unused state. It will most likely be some time before this feature is implemented.

---

<div class="post-metadata">

**Author:** ![kfortin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kfortin/32/4195_2.png) [@kfortin](https://forum.inductiveautomation.com/u/kfortin)\
**Post date:** [July 21, 2021, 1:41am UTC](https://forum.inductiveautomation.com/t/feature-16560-external-clean-or-reset-of-uploaded-files-on-component-file-upload-perspective/35061/5 "2021-07-21T01:41:39Z")

</div>

Bump 😉

Running into the same situation here where I have a data entry form that includes a file upload. When the user clicks a ‘clear’ button, I would like to be able to reset the file upload component to its original state. Any progress on this feature?

---

<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:** [July 21, 2021, 1:50am UTC](https://forum.inductiveautomation.com/t/feature-16560-external-clean-or-reset-of-uploaded-files-on-component-file-upload-perspective/35061/6 "2021-07-21T01:50:05Z")

</div>

It’s been in limbo for a long while now, but was just pinged yesterday for re-review so that it could receive a priority. So… it’s in progress, but I would not expect it anytime soon.

---

<div class="post-metadata">

**Author:** ![nicholas.robinson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nicholas.robinson/32/22188_2.png) [@nicholas.robinson](https://forum.inductiveautomation.com/u/nicholas.robinson)\
**Post date:** [September 2, 2021, 5:42pm UTC](https://forum.inductiveautomation.com/t/feature-16560-external-clean-or-reset-of-uploaded-files-on-component-file-upload-perspective/35061/7 "2021-09-02T17:42:42Z")

</div>

@cmallonee I would also like to check on this feature. We have a clear way to flush out the variables where file uploads are stored, but we need a programmatic way to push this button:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/b/3ba8a6983fc8f582f3d8a658e8556404e40e4a1d.png)

In our case when the user presses submit, we want to clear the whole screen. We are able to wipe out the actual data, but the screen still shows as if something is still attached.

Thanks,

Nicl

---

<div class="post-metadata">

**Author:** ![Terra\_Pasternak](https://avatars.discourse-cdn.com/v4/letter/t/e36b37/32.png) [@Terra\_Pasternak](https://forum.inductiveautomation.com/u/Terra_Pasternak)\
**Post date:** [August 12, 2024, 5:08pm UTC](https://forum.inductiveautomation.com/t/feature-16560-external-clean-or-reset-of-uploaded-files-on-component-file-upload-perspective/35061/8 "2024-08-12T17:08:02Z")

</div>

On the file upload component, use the method clearUploads(). This refreshes the component with the cloud icon.
