Forum

Thread tagged as: Question, Problem, Field-Types

File Input Filtered by Type 'Documents'

I have a file field type that is being used for audio files, but when I go to add an asset it automatically filters by the document type. This is really annoying, is there a way to stop it from doing that?

Zane Harnish

Zane Harnish 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Set file-type="audio" on the tag, and it'll be filtered to audio by default.

Thanks! Is that in the documentation somewhere? If so I missed it.

Also, just out of curiosity, is there a way to use that attribute to clear the file type filter? Like file-type="all" or something?

Drew McLellan

Drew McLellan 2638 points
Perch Support

There isn't currently, but I'll give it some thought.