Fix issues with uploads to S3 with unknown length.