Fix maximum upload limit when $CFG->maxbytes is 0