Apparently "upload_max_filesize" INI directive was giving output like "2M" which was unparseable by Mantis. Instead of setting Mantis config, increase base php.ini parameters to ~50MB and remove this line at all. Fixes #5