# Upload button still works after disabling upload field

**URL:** <https://community.weweb.io/t/upload-button-still-works-after-disabling-upload-field/2018>\
**Category:** Ask us anything\
**Created:** [March 13, 2023, 11:18am UTC](https://community.weweb.io/t/upload-button-still-works-after-disabling-upload-field/2018 "2023-03-13T11:18:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![bidemi](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@bidemi](https://community.weweb.io/u/bidemi)\
**Post date:** [March 13, 2023, 11:18am UTC](https://community.weweb.io/t/upload-button-still-works-after-disabling-upload-field/2018/1 "2023-03-13T11:18:48Z")

</div>

Hello WeWeb team,

When I disable a file upload field, users are still able to click the upload button and choose a file. I do not want users to be able to interact with the button when the field is disabled.

---

<div class="post-metadata">

**Author:** ![aurelie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/aurelie/32/13249_2.png) [@aurelie](https://community.weweb.io/u/aurelie)\
**Post date:** [March 13, 2023, 1:04pm UTC](https://community.weweb.io/t/upload-button-still-works-after-disabling-upload-field/2018/2 "2023-03-13T13:04:46Z")

</div>

Thank you for your feedback, we have logged this issue on our side, and will let you know when we will publish the fix

---

<div class="post-metadata">

**Author:** ![MichaelLovell](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/michaellovell/32/2157_2.png) [@MichaelLovell](https://community.weweb.io/u/MichaelLovell)\
**Post date:** [May 26, 2023, 12:55am UTC](https://community.weweb.io/t/upload-button-still-works-after-disabling-upload-field/2018/3 "2023-05-26T00:55:46Z")

</div>

Hi @aurelie,

Any update on the button ‘disabled’ button feature being fixed?

Using an additional step within a workflow as an interim measure.

---

<div class="post-metadata">

**Author:** ![aurelie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/aurelie/32/13249_2.png) [@aurelie](https://community.weweb.io/u/aurelie)\
**Post date:** [May 26, 2023, 8:09am UTC](https://community.weweb.io/t/upload-button-still-works-after-disabling-upload-field/2018/4 "2023-05-26T08:09:41Z")

</div>

If I believe my Jira tickets, this has been pushed in production. Do you still have the problem?

---

<div class="post-metadata">

**Author:** ![bidemi](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@bidemi](https://community.weweb.io/u/bidemi)\
**Post date:** [May 26, 2023, 8:33am UTC](https://community.weweb.io/t/upload-button-still-works-after-disabling-upload-field/2018/5 "2023-05-26T08:33:27Z")

</div>

I’ll check and let you know.

Thanks

---

<div class="post-metadata">

**Author:** ![MichaelLovell](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/michaellovell/32/2157_2.png) [@MichaelLovell](https://community.weweb.io/u/MichaelLovell)\
**Post date:** [May 26, 2023, 7:48pm UTC](https://community.weweb.io/t/upload-button-still-works-after-disabling-upload-field/2018/6 "2023-05-26T19:48:57Z")

</div>

Nope, it’s still not disabling the button. I’ve tried changing the type to ‘submit button’ and tried changing the formula. It doesn’t make any difference. The button still triggers the dialogue box to upload a file.

![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/6/6588c5743244bcf82cca94fa0f84894739e253f1.png)

---

<div class="post-metadata">

**Author:** ![jaredgibb](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@jaredgibb](https://community.weweb.io/u/jaredgibb)\
**Post date:** [May 27, 2023, 12:20am UTC](https://community.weweb.io/t/upload-button-still-works-after-disabling-upload-field/2018/7 "2023-05-27T00:20:18Z")

</div>

A workaround idea: You could layer/position the element behind an invisible div of the same size and mess with z-index such that the user only clicks on the top invisible div and not the file picker.

---

<div class="post-metadata">

**Author:** ![Quentin](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/quentin/32/6_2.png) [@Quentin](https://community.weweb.io/u/Quentin)\
**Post date:** [May 30, 2023, 8:35am UTC](https://community.weweb.io/t/upload-button-still-works-after-disabling-upload-field/2018/8 "2023-05-30T08:35:29Z")

</div>

Could you add this as a bug on [support.weweb.io](http://support.weweb.io) ? We’ll fix this asap

---

<div class="post-metadata">

**Author:** ![Quentin](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/quentin/32/6_2.png) [@Quentin](https://community.weweb.io/u/Quentin)\
**Post date:** [May 30, 2023, 1:56pm UTC](https://community.weweb.io/t/upload-button-still-works-after-disabling-upload-field/2018/9 "2023-05-30T13:56:48Z")

</div>

Hey, my bad. It seemed like you tried to disable the button, when you had to disable the whole image upload element, like so:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/145dee17bfc3f71ec720cb78f2d430d2ec4b8878.png)
