Support '-1' as a special value in memory limit for max attachment filesize.