components
components copied to clipboard
[Feature Request]: Add a disabled property to the FileUpload
Description
The file upload component is inconsistent with all other form components. All the others have a disabled property, this one does not. It would be useful to be able to disable it conditionally as follows:
<FileUpload
disabled={disabled}
...
/>
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
- [X] I checked the current issues for duplicate requests
Hi, thank you for reaching out. Can you provide some more details about your use case for this property, i.e. in which situation do you want to disable the component? This will help us better understand the request.
Closing due to inactivity. Feel free to share more info about your use-cases, we will reopen this
I am looking for the same feature. My use case is simple: a form with a couple of form fields and <FileUpload /> component. When the form is being submitted I'd like to disable <FileUpload /> so that user cannot click on it and choose another file. I hope it makes sense.
The above is exactly my use case