aliyun / aliyun/alibabacloud-java-async-sdk
oss20190517 upload part api set header 'Content-Type' invalid
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 34
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
the upload part api can't identify the file mime ,so need set the Content-Type in the api InitiateMultipartUpload,there are not ContentType method, so I used headerParam,but after uploaded ,the Content-Type not change, what the right way to change the Content-Type?
InitiateMultipartUploadRequest initiateMultipartUploadRequest = InitiateMultipartUploadRequest.builder()
.bucket(bucket)
.key(ossKey)
.headerParam("Content-Type", FileTypeUtils.getContentType(file))//here
.build();
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the InitiateMultipartUploadRequest builder and the multipart upload flow shown in the issue, then compare headerParam("Content-Type") with the Alibaba Cloud API documentation linked there. Confirm the correct request field or step by verifying that the uploaded object retains the intended MIME type.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100