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?
Looks like the CMFile is not passing the mimeType along to the server.
I expect the file to be saved with mimeType on the server
application/pdfbut it's stored withapplication/octet-streaminstead. 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?