alibabacloud-java-async-sdk
alibabacloud-java-async-sdk copied to clipboard
oss20190517 upload part api set header 'Content-Type' invalid
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();
您好,可以根据您的需求来选择使用的SDK,OSS原生支持的com.aliyun.oss:aliyun-sdk-oss和升级版非异步的com.aliyun:oss-20190517都是不支持异步调用的,升级版非异步SDK对新手较友好,尤其是其他语言转过来的开发者,较容易上手。而升级版异步库,也就是本库,面向对象是高级开发者,是阿里云官方SDK团队和对象存储团队合作的库,虽然目前还有未完善的地方,但是会持续更新,后续会逐步完善。
收到反馈,我们这边排查下