Contentful logo

Contentful Community

Media file name or extension validation

There is a predefined file types validation (image, video, etc…) for media files, but I need to validate the file name (using regex) and/or extension. Is there a way to do that? Maybe using UI extensions?

Hi @luis.rojo,
You can actually validate a short-text field using regex by configuring that field.
Here’s a screenshot demonstrating that:

But I need it not for a Short Text field but for a Media field:

Hi @luis.rojo,
That would indeed not be possible at the moment. Still, I made sure to send out your feedback to our product team as a feature request.