evernote-cloud-sdk-ios
evernote-cloud-sdk-ios copied to clipboard
resource mime type different in note en-media tag and when fetched from api
Within note fetched via sdk I have
<en-media hash="4b285dd131c77c96544cb0d93cb425d8" height="39" type="image/png" width="200" />
notice "image/png" type When I fetch the resources for the note
ENSession.shared.primaryNoteStore()?.fetchNote(withGuid: guid, includingContent: true, resourceOptions: ENResourceFetchOption.includeData, completion: { note, error in
if error != nil {
print(error)
} else {
for res in note.resources {
let fileExtension = res.mime.split(separator: "/")[1]
print("\(fileExtenstion)")
}
}
})
I get "image/jpeg"
This happens for many resources. For some, it works. Any idea why this might be happening?