Restrict Image upload on the basis of dimensions

System Information
  • Strapi Version: 4
  • Operating System: windows
  • Database: sqllite
  • Node Version: 16.15.0
  • NPM Version: 8.5.5
  • Yarn Version: 1.22.18

Hello,

I am trying to validate uploads on images and trying to show a validator on the UI. I am wondering how to achieve that? I have tried to manipulate code in the admin-api.js in node modules but no success. Can someone guide me on where to put my validation or how to in strapi v4 ?

Regards,
Sayantan

2 Likes