Skip to content

How to set metadata such as Content-Type: gzip for media upload? #31

@burcugen

Description

@burcugen

I'm using createSimpleUpload method for uploading a gzipped png file.

I tried both sending queryParamaters array like:

["Content-Encoding" : "gzip"]

And also tried to send Content Encoding under MediaType:

mediaType: MediaType(type: "image", subType: "png", parameters: ["Content-Encoding" : "gzip"])

Both did failed.

I expected result as following. I think It needs to be set to httpHeaders, How can I pass Content-Encoding as metadata of object?

Screen Shot 2020-10-27 at 15 45 13

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions