Hotfix check to ensure that maxFileSize is set before evaluating it