olofd/react-native-photos-framework

How to get MimeType?

Opened this issue · 2 comments

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.

@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,
    ...
});

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