You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update: After passing headerParameters: [String: String]? to createSimpleUpload.
var headers: HTTPHeaders = [HTTPHeaderName.contentType.description: mediaType.description]
if let headerParameters = headerParameters{
for (key,value) in headerParameters{
headers.add(name: key, value: value)
}
}
Is there any method that I can use? Thanks in advance.
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?
The text was updated successfully, but these errors were encountered: