Get the upload size limit from a subroutine

This is done so the limit is not fixed, but can be changed dynamically