Currently the max size limits for files uploads are hardcoded in different places throughout the code.
For example - here and here - the max size is hardcoded.
Instead of this a better approach is to add the size limits in configuration.
@mariobehling I would like to make a PR for this!