fix to make sure server configs max_upload is an integer