components icon indicating copy to clipboard operation
components copied to clipboard

[Feature Request]: Add a disabled property to the FileUpload

Open IgniparousTempest opened this issue 1 year ago • 4 comments

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

IgniparousTempest avatar Dec 22 '23 20:12 IgniparousTempest

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.

connorlanigan avatar Jan 03 '24 15:01 connorlanigan

Closing due to inactivity. Feel free to share more info about your use-cases, we will reopen this

just-boris avatar Mar 04 '24 15:03 just-boris

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.

ericxinzhang avatar Mar 18 '24 06:03 ericxinzhang

The above is exactly my use case

IgniparousTempest avatar Mar 28 '24 09:03 IgniparousTempest