react-native-photos-framework icon indicating copy to clipboard operation
react-native-photos-framework copied to clipboard

How to get MimeType?

Open ridsameer opened this issue 7 years ago • 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.

ridsameer avatar Sep 12 '18 11:09 ridsameer

@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 avatar Sep 18 '18 14:09 FrikkieSnyman

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

ridsameer avatar Sep 24 '18 16:09 ridsameer