# \[IGN-406\] Perspective File Upload Component - Enabled

**URL:** <https://forum.inductiveautomation.com/t/ign-406-perspective-file-upload-component-enabled/48800>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [July 13, 2021, 9:51pm UTC](https://forum.inductiveautomation.com/t/ign-406-perspective-file-upload-component-enabled/48800 "2021-07-13T21:51:20Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![awaege1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awaege1/32/28922_2.png) [@awaege1](https://forum.inductiveautomation.com/u/awaege1)\
**Post date:** [July 13, 2021, 9:51pm UTC](https://forum.inductiveautomation.com/t/ign-406-perspective-file-upload-component-enabled/48800/1 "2021-07-13T21:51:20Z")

</div>

Does anyone know of a way to disable the perspective file upload component based on some type of expression? I have an instance where the user needs to enter a certain property before being allowed to upload a file. There doesn’t seem to be an “enabled” property for this component which I find unusual?

---

<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 13, 2021, 10:08pm UTC](https://forum.inductiveautomation.com/t/ign-406-perspective-file-upload-component-enabled/48800/2 "2021-07-13T22:08:44Z")

</div>

We have an open feature request to provide `props.enabled` as a property for the component. There is no way currently to disabled the component, though you are able to prevent any supplied files from being uploaded by constructing your own conditions in the `onFileReceived` Event.

---

<div class="post-metadata">

**Author:** ![awaege1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awaege1/32/28922_2.png) [@awaege1](https://forum.inductiveautomation.com/u/awaege1)\
**Post date:** [July 13, 2021, 10:10pm UTC](https://forum.inductiveautomation.com/t/ign-406-perspective-file-upload-component-enabled/48800/3 "2021-07-13T22:10:31Z")

</div>

Good to know. For now I just dropped it in a view component and bound the visibility. Not a perfect solution but it will work for now.

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [June 23, 2022, 10:11pm UTC](https://forum.inductiveautomation.com/t/ign-406-perspective-file-upload-component-enabled/48800/4 "2022-06-23T22:11:55Z")

</div>

As of v8.1.17 I still don’t see an enabled property. Since I can’t find an idea post on [Ignition Features and Ideas | Inductive Automation](https://inductiveautomation.canny.io/ignition-features-and-ideas), please consider this a vote for this as a useful feature.

We’ll implement a workaround in a similar way, but it would be nice if we could handle the case where we’re not yet ready for an upload a bit more gracefully.

---

<div class="post-metadata">

**Author:** ![Miguel\_Villasenor\_Es](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/miguel_villasenor_es/32/60416_2.png) [@Miguel\_Villasenor\_Es](https://forum.inductiveautomation.com/u/Miguel_Villasenor_Es)\
**Post date:** [February 7, 2024, 5:55pm UTC](https://forum.inductiveautomation.com/t/ign-406-perspective-file-upload-component-enabled/48800/5 "2024-02-07T17:55:30Z")

</div>

It's 2024 and that property is still not here, how do I prevent a user from uploading a file if a condition is not met?

I need them to make a comment in a text area and upload their file, but if there is no text, how do I make it so that the file isn't received/uploaded?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 7, 2024, 6:04pm UTC](https://forum.inductiveautomation.com/t/ign-406-perspective-file-upload-component-enabled/48800/6 "2024-02-07T18:04:21Z")

</div>

Consider hiding the upload component until the conditions are met.

---

<div class="post-metadata">

**Author:** ![Miguel\_Villasenor\_Es](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/miguel_villasenor_es/32/60416_2.png) [@Miguel\_Villasenor\_Es](https://forum.inductiveautomation.com/u/Miguel_Villasenor_Es)\
**Post date:** [February 8, 2024, 12:27pm UTC](https://forum.inductiveautomation.com/t/ign-406-perspective-file-upload-component-enabled/48800/7 "2024-02-08T12:27:44Z")

</div>

hm... okay. 😕

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 8, 2024, 12:34pm UTC](https://forum.inductiveautomation.com/t/ign-406-perspective-file-upload-component-enabled/48800/8 "2024-02-08T12:34:24Z")

</div>

Developing in Perspective is a life lesson in choosing between unpleasant limitations or cracking one's skull with hacky work-arounds. When there **is** a choice, that is.

☹

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [February 8, 2024, 1:44pm UTC](https://forum.inductiveautomation.com/t/ign-406-perspective-file-upload-component-enabled/48800/9 "2024-02-08T13:44:32Z")

</div>

> [@pturmel](#):
>
> cracking one's skull with hacky work-arounds

This time it wasnt super hacky, thought its not 100% safe, be sure to block off the onfilerecieved event too if its critical  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/c/4c1e39db7b299ad9be1af03e70c3393b4680c726.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 8, 2024, 1:50pm UTC](https://forum.inductiveautomation.com/t/ign-406-perspective-file-upload-component-enabled/48800/10 "2024-02-08T13:50:30Z")

</div>

> [@victordcq](#):
>
> be sure to block off

Yeah, just in case someone **tabs** into the upload entry field.

I like changing display to none. And making some dummy button visible in its place.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [February 8, 2024, 1:56pm UTC](https://forum.inductiveautomation.com/t/ign-406-perspective-file-upload-component-enabled/48800/11 "2024-02-08T13:56:35Z")

</div>

removing tab index is also possible, but that would require some hacky workarounds xd

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 8, 2024, 1:58pm UTC](https://forum.inductiveautomation.com/t/ign-406-perspective-file-upload-component-enabled/48800/12 "2024-02-08T13:58:02Z")

</div>

> [@victordcq](#):
>
> require some hacky workarounds

😁 I rest my case.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [February 8, 2024, 2:07pm UTC](https://forum.inductiveautomation.com/t/ign-406-perspective-file-upload-component-enabled/48800/13 "2024-02-08T14:07:03Z")

</div>

you could also set maxupload amount and size to 0 i guess, when tabbing the fileexplorer still opens but atleast they cant upload anything,  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/8/3865b6785badfd6031433a3357c4cb3dd0475fa3.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 8, 2024, 2:09pm UTC](https://forum.inductiveautomation.com/t/ign-406-perspective-file-upload-component-enabled/48800/14 "2024-02-08T14:09:04Z")

</div>

Or you can just display a label that actually explains "uploads forbidden without comment". 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![Felipe\_CRM](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Felipe\_CRM](https://forum.inductiveautomation.com/u/Felipe_CRM)\
**Post date:** [February 8, 2024, 2:54pm UTC](https://forum.inductiveautomation.com/t/ign-406-perspective-file-upload-component-enabled/48800/15 "2024-02-08T14:54:32Z")

</div>

I second having the file component both hidden and replaced with a descriptive dummy.

If it's just missing, or unclickable, or can upload 0 files, users will ignore the context and treat it as a bug.

---

<div class="post-metadata">

**Author:** ![cross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cross/32/76508_2.png) [@cross](https://forum.inductiveautomation.com/u/cross)\
**Post date:** [April 21, 2026, 5:43pm UTC](https://forum.inductiveautomation.com/t/ign-406-perspective-file-upload-component-enabled/48800/16 "2026-04-21T17:43:08Z")

</div>

This has been addressed in Ignition version 8.3.5
