gentics / mesh-incubator

Project which is home for planned enhancements for Gentics Mesh
3 stars 0 forks source link

Mimetype handling for fileuploads #80

Open Jotschi opened 7 years ago

Jotschi commented 7 years ago

Related docs which need to be added to mesh once the enhancement has been added:

Media type whitelist for binary schemas
Binary schemas should be able to specify which media types (aka MIME type or Content-type) they may contain. This would be done by means of a whitelist which is an array of multiple regular expressions.

Since the JSON standard does not have a special regex type, it would need to be specified as a string, but would actually be converted to and interpreted as a regex by Gentics Mesh.