add configurable maximum file size