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

How to get MimeType? #89

Open
ridsameer opened this issue Sep 12, 2018 · 2 comments
Open

How to get MimeType? #89

ridsameer opened this issue Sep 12, 2018 · 2 comments

Comments

@ridsameer
Copy link

I tried using this library today however the asset does not return the MimeType. And neither is it in the extension. I need the mimeType to upload it without using the in-built ajaxHelper.

@FrikkieSnyman
Copy link

@ridwansameer Check the resourcesMetadata array that is returned with the asset. Make sure that you have includeResourcesMetadata: true in the getAssets props param, ie:

RNPhotosFramework.getAssets({
    ...
    includeResourcesMetadata: true,
    ...
});

@ridsameer
Copy link
Author

@FrikkieSnyman I tried it with the metaData, however it does not come with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants