mirror of https://github.com/vector-im/riot-web
limit avatar uploads to images
parent
e79d38467b
commit
5ac76acc05
|
@ -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>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue