You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
limit avatar uploads to images
This commit is contained in:
@@ -128,7 +128,7 @@ module.exports = React.createClass({
|
|||||||
uploadSection = (
|
uploadSection = (
|
||||||
<div className={this.props.className}>
|
<div className={this.props.className}>
|
||||||
Upload new:
|
Upload new:
|
||||||
<input type="file" onChange={this.onFileSelected}/>
|
<input type="file" accept="image/*" onChange={this.onFileSelected}/>
|
||||||
{this.state.errorText}
|
{this.state.errorText}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user