Open
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();
Metadata
Metadata
Assignees
Labels
No labels