Added checks to refuse accepting too many bytes in an upload.  This is done somewhat crudely, in that the excess upload is accepted and the undone when it is realized it is too large.
If we are uploading too many bytes, stop as soon as we've exceeded the expected number (but don't bother trying to use a different chunk size).