Prevent ReadAll helper from hanging if it can't get all the bytes it wants.
Implemented box upload.