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