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:
Christopher Speller
2015-07-23 14:56:53 -04:00
3 changed files with 3 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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();

View File

@@ -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++;
}