Restricting file upload in Media Library using specific mime types. For example , only jpeg and png files

[details=“System Information”]

  • Strapi Version: 4.6.0
  • Operating System: Ubuntu 20
  • Database: Mysql 5.7
  • Node Version: 14.21.2
  • NPM Version: 6.14.17
  • Yarn Version:

Hi, As part of the Vulnerability assessment testing, it found that media library plugin is accepting any kind of files for upload. And didn’t found any configuration to allow only particular file extensions. Could anyone have any idea? Thanks in advance.

1 Like

I also need to restrict media libary file upload based on mime types. is there any way work around?