How to pass active filter "type is audio" to MediaLibraryDialog Strapi component?

We want to show in the MediaLibraryDialog only the give types by the allowedTypes property, so we don’t have annoying information for the content manager.

We though It would be possible by using the aforementioned property, but it does not work.

It is possible by filtering the media assets by type, but it must be done on the frontend; we want to do the same thimg but by code.

How can we do that?

MediaLibraryDialog does not expose any filters by API.

This topic has been created from a Discord post (1284653259306303651) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

We are looking something like this:

    <MediaLibraryModal
      allowedTypes={allowedTypes}
      onClose={onToggle}
      onSelectAssets={handleSelectedAssets}
      filters={{
        mime: { $contains: allowedTypes[0].replace("s", "") },
      }}
    />

I don’t see the transaction, why isn’t this transaction being executed?