S3上无法使用Chunked上传文件 | Unable to use Chunked to upload files on S3

0

我通过SDK生成一个加签的URL,然后使用Apache.HttpClient去上传数据,以Inputstream的方式,并且无法预估Content-Length。 此时会报错 <Code>NotImplemented</Code> <Message>A header you provided implies functionality that is not implemented</Message>

<Header>Transfer-Encoding</Header>

看了一些文章,是必须要指定Content-Length在此处输入图片描述

但是通过InputStream的方式是无法预估Content-Length大小的,这种情况如何成功上传呢?


I generate a signed URL through the SDK, and then use Apache.HttpClient to upload data in the form of Inputstream, and the Content-Length cannot be estimated. At this time, an error will be reported <Code>NotImplemented</Code> <Message>A header you provided implies functionality that is not implemented</Message>

<Header>Transfer-Encoding</Header>

After reading some articles, it is necessary to specify Content-Length在此处输入图片描述

However, the Content-Length size cannot be estimated through the InputStream method. How to upload successfully in this case?

질문됨 일 년 전115회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인