Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try using get NSURL.getResourceValue and kCFURLTypeIdentifierKey to get UTI directly #98

Open
dantman opened this issue Mar 14, 2018 · 0 comments
Labels
addressed in premium version This issue has been addressed (implemented, fixed) in the package available to sponsors.

Comments

@dantman
Copy link
Collaborator

dantman commented Mar 14, 2018

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.

@dantman dantman added the v3 label Mar 14, 2018
@vonovak vonovak added addressed in premium version This issue has been addressed (implemented, fixed) in the package available to sponsors. and removed v3 labels May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addressed in premium version This issue has been addressed (implemented, fixed) in the package available to sponsors.
Projects
None yet
Development

No branches or pull requests

2 participants