mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Co-authored-by: Mattermost Build <build@mattermost.com>
(cherry picked from commit 4615ca5f28
)
Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
This commit is contained in:
parent
f77dc41943
commit
6bdb5504eb
@ -40,6 +40,10 @@ export default class FileUploadSetting extends React.PureComponent<Props, State>
|
||||
};
|
||||
}
|
||||
|
||||
handleChooseClick = () => {
|
||||
this.fileInputRef.current?.click();
|
||||
};
|
||||
|
||||
handleChange = () => {
|
||||
const files = this.fileInputRef.current?.files;
|
||||
if (files && files.length > 0) {
|
||||
@ -92,6 +96,7 @@ export default class FileUploadSetting extends React.PureComponent<Props, State>
|
||||
type='button'
|
||||
className='btn btn-tertiary'
|
||||
disabled={this.props.disabled}
|
||||
onClick={this.handleChooseClick}
|
||||
>
|
||||
<FormattedMessage
|
||||
id='admin.file_upload.chooseFile'
|
||||
|
Loading…
Reference in New Issue
Block a user