I have updated my craft/config/general.php file to allow some new file types to be uploaded to my site.

'extraAllowedFileExtensions' => 'bim, dwg, rvt'

When I output these file assets in the template, I would like to be able to use the {{ asset.kind }} property to output "PDF" or whatever name for my additional types.

Currently I see unknown for each of my new types.

I've had a look in the documentation for the IOHelper Class but could not see a way to add additional definitions.


Currently, the "file kinds" list is hard-coded and doesn't expose itself to a config setting or plugins.

You can definitely make a feature request to open it up, though!


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.