Skip to content

oss20190517 upload part api set header 'Content-Type' invalid #2

Description

@nadirvishun

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions