summaryrefslogtreecommitdiffstats
path: root/web/react/components/file_upload.jsx
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-07-23 10:01:19 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-07-23 10:01:19 -0700
commit952e7a93f977a11bd65c0477d478154e1faddc15 (patch)
tree4d14225401512765344701b1f61ac838f621a130 /web/react/components/file_upload.jsx
parentdc79707787b521ea5fc0d9088ccd9069780c8e0c (diff)
downloadchat-952e7a93f977a11bd65c0477d478154e1faddc15.tar.gz
chat-952e7a93f977a11bd65c0477d478154e1faddc15.tar.bz2
chat-952e7a93f977a11bd65c0477d478154e1faddc15.zip
Fixed issue with error message for uploading more than 5 files not appearing on OSX
Diffstat (limited to 'web/react/components/file_upload.jsx')
-rw-r--r--web/react/components/file_upload.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/file_upload.jsx b/web/react/components/file_upload.jsx
index f2429f17e..aee089dbc 100644
--- a/web/react/components/file_upload.jsx
+++ b/web/react/components/file_upload.jsx
@@ -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++;
}