Try using get NSURL.getResourceValue and kCFURLTypeIdentifierKey to get UTI directly #98
Labels
addressed in premium version
This issue has been addressed (implemented, fixed) in the package available to sponsors.
Right now in v3 we are getting the mimeType through a UTI (Apple's Universal Type Identifier) based on the file extension using the System's .ext -> UTI and UTI -> mimeType databases.
We should investigate whether using NSURL.getResourceValue with the
kCFURLTypeIdentifierKey
key on the URL returned by the document picker returns the UTI for that file directly.If so this would be a more reliable method. Though we can still keep the old code as a fallback if it doesn't work.
The text was updated successfully, but these errors were encountered: