1
0
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:
Matthew Hodgson
2017-02-19 02:07:00 +02:00
parent e79d38467b
commit 5ac76acc05

View File

@@ -128,7 +128,7 @@ module.exports = React.createClass({
uploadSection = (
<div className={this.props.className}>
Upload new:
<input type="file" onChange={this.onFileSelected}/>
<input type="file" accept="image/*" onChange={this.onFileSelected}/>
{this.state.errorText}
</div>
);