2

Is it possible to further restrict asset filetypes than just "image"?

For example only allow .jpg, .jpeg and .png ?

1 Answer 1

3

It depends. If the only files you want to upload are .jpg, .jpeg, and .png, then yes: set allowedFileExtensions in your config/general.php

'allowedFileExtensions' => 'jpg, jpeg, png',

If you want those to be the only image filetypes, but to allow other files for non-image assets, then that is harder (and I don't know how to do it).

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.