Different file fields for different file types

Is there a way to restrict certain file fields to selected file types?

Example

Let’s say my blueprint looks like this:

…
files:
  fields:
    caption:
      label: Caption
      type: textarea
…

The caption field will be displayed for every file which is uploaded to the page (images, documents, audio, …). But for me it’s only relevant for images. Is there a way to hide it for all other file types?

This would be very handy, especially if there are many different file types and many different fileds …

Hi Flo,

this has been asked before and as yet, there is no inbuilt way to achieve this that I know of. However, in the thread I mentioned, @distantnative came up with an idea, which might be worth considering.

Alright. I did a forum search but didn’t find this topic. Thanks for your reply.