Send the content length to the upload method.