- Strapi Version: latest
- Operating System: macOS, Linux
- Database: MongoDB Atlas
- Node Version: 12.14.1
- NPM Version: 6.14.9
- Yarn Version: 1.22.4
Strapi’s UI default Allowed File Types " in the advanced settings are not very granular – i.e. supporting images, videos, and files, but not specific file extensions (mimes) for each of these three types.
I wish to add additional granularity to the “files” filter to allow only specific mime types – e.g. allow only “.pdf” uploads.
Should I act on one of the approaches listed below to filter file uploads based on the specific extension type(s)?
Add logic to the api/type/service.js file for my collection type?
Clone and customize the code of the strapi-provider-upload-local?