Skip to content

Commit

Permalink
Merge pull request #5318 from bolt/fix/upload-limit-calculation
Browse files Browse the repository at this point in the history
Fix/upload limit calculation
  • Loading branch information
GwendolenLynch committed May 13, 2016
2 parents b3ef407 + 57b315b commit e780a35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/src/js/widgets/buic/buicUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@

// Set maxSize, if not set on creation.
if (this.options.maxSize === null) {
this.options.maxSize = bolt.utils.filterInt(bolt.conf('uploadConfig.maxSize'), 2000000);
var tempSize = Math.floor(bolt.conf('uploadConfig.maxSize'));
this.options.maxSize = bolt.utils.filterInt(tempSize, 2000000);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion app/src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"deep-extend": "~0.4.1",
"font-awesome": "~4.6.1",
"grunt": "~1.0.1",
"grunt-bom-removal": "~0.2.0",
"grunt-bom-removal": "~1.0.0",
"grunt-bootlint": "~0.10.0",
"grunt-contrib-concat": "~1.0.0",
"grunt-contrib-copy": "~1.0.0",
Expand Down
Loading

0 comments on commit e780a35

Please sign in to comment.