Restricting a Media-MultipleMedia field to a given number

Hello, i have set a media field with the multiple media option for uploading images from the front-end but i would like to restrict the maximum to 4 images .
i cant seem to find the way to achieve this.

Could you please help me with this?


System Information
  • Strapi Version: 3.3.4
  • Operating System: 10.13.6
  • Database:
  • Node Version: 12.18
  • NPM Version: 6.14
  • Yarn Version:

1 Like

Did you find solution for this?

I think you can try dynamic zone approach like me. So, you need to create single component image and wrap to dynamic zone. Then, you can limit the images by limit the dynamic zone components max value.