added maxFileSize configurable from config.xml