Skip to content

mimeType not working on CMFile #47

@natevecc

Description

@natevecc

Looks like the CMFile is not passing the mimeType along to the server.

let file = CMFile(data: pdfData, named: "doc.pdf", mimeType: "application/pdf")
file.saveWithUser(user) { response in
  ...
}

I expect the file to be saved with mimeType on the server application/pdf but it's stored with application/octet-stream instead. Looking at the code it looks like the mimeType is never passed along. The docs reference being able to do this. Is there a work around?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions