mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Merge pull request #244 from rgarmsen2295/mm-1610
MM-1610 Fixed issue with error message for uploading more than 5 files not appearing on OSX
This commit is contained in:
@@ -40,7 +40,7 @@ module.exports = React.createClass({
|
||||
post.parent_id = this.props.parentId;
|
||||
post.filenames = this.state.previews;
|
||||
|
||||
this.setState({ submitting: true });
|
||||
this.setState({ submitting: true, limit_error: null });
|
||||
|
||||
client.createPost(post, ChannelStore.getCurrent(),
|
||||
function(data) {
|
||||
|
||||
@@ -45,7 +45,7 @@ module.exports = React.createClass({
|
||||
return;
|
||||
}
|
||||
|
||||
this.setState({ submitting: true });
|
||||
this.setState({ submitting: true, limit_error: null });
|
||||
|
||||
var user_id = UserStore.getCurrentId();
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ module.exports = React.createClass({
|
||||
// This looks redundant, but must be done this way due to
|
||||
// setState being an asynchronous call
|
||||
var numFiles = 0;
|
||||
for(var i = 0; i < files.length && i < Constants.MAX_UPLOAD_FILES; i++) {
|
||||
for(var i = 0; i < files.length; i++) {
|
||||
if (files[i].size <= Constants.MAX_FILE_SIZE) {
|
||||
numFiles++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user