Enable / Disable Upload Component

Is there a way to disable the Upload Component like it is possible for TexField and many other Components?
My Case is: I only want the user allow to upload a file if in he/she has an object from my grid selected.

No, it is missing feature → [upload] Add disabled property · Issue #1278 · vaadin/web-components · GitHub

In your use case one option would be to toggle Upload component visibility instead

Thanks for this. The max file solution is really good and does the trick. I did the visibility hack before but after 8 Weeks the customer response was: Disappearing UI Elements sucks :smile: