Forum

Thread tagged as: Question

Specify image type

Hey,

Happy new year all! Is there a way to specify that the user can only upload an SVG type image for the image region type?

Cheers!

Ryan Gittings

Ryan Gittings 1 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, you can add it to a group in the config/filetypes.ini file. You can then restrict a field to that group using the accepts attribute on the image and file field types with Paranoid mode enabled.

https://docs.grabaperch.com/perch/configuration/security/