Called when a request starts and shouldResetUploadProgress is true.
It is also called (with a negative length) to remove the size of the underlying buffer used for uploading.