Skip to content

Commit

Permalink
Increased list filesize limit and fixed typo
Browse files Browse the repository at this point in the history
As mentioned in #1947 the limit for uploading a list for the CDB-list capability is too low and the resulting error message contains a typo.

This commit addresses that by increasing the limit to 5MB and fixing the typo.
  • Loading branch information
Juan Carlos Tello committed Jan 9, 2020
1 parent 0eb1c88 commit 58ebf3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/controllers/management/components/upload-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class UploadFiles extends Component {
uploadErrors: false,
errorPopover: false
};
this.maxSize = 307200; // 300Kb
this.maxSize = 5120000; // 5Mb
}

onChange = files => {
Expand Down Expand Up @@ -293,7 +293,7 @@ export class UploadFiles extends Component {
{this.checkOverSize() > 0 && (
<Fragment>
{this.renderWarning(
`The max size per file allowd is ${this.maxSize / 1024} Kb`
`The max size per file allowed is ${this.maxSize / 1024} Kb`
)}
</Fragment>
)}
Expand Down

0 comments on commit 58ebf3c

Please sign in to comment.