Contentful logo

Contentful Community

Asset mimetype_group -> real file mimetype

Hi!

INTRO

for file type validation Contentful uses a mimetype_group field.

For example,:
https://api.contentful.com/spaces/qxrhpe8tmcyr/assets?limit=40&mimetype_group=pdfdocument shows only pdf files.

The possible values of mimetype_group are:
["attachment", "plaintext", "image", "audio", "video", "richtext", "presentation", "spreadsheet", "pdfdocument", "archive", "code", "markup"]

QUESTION

Is it possibile to know the real mimetypes associated for each groups? For example, for the “image” group the possibile mimetypes are ["image/png", "image/jpeg", ...] or 'image/* …?

Thank you,
Vincenzo