Custom blueprint `type: pagemedia` allowed filetypes

Hey guys,

I’m using custom blueprints for my pages in grav admin and noticed that if using type: pagemedia for organizing media files, there is now way to set which files are allowed for uploading, like it works with type: file

type: file
accept:
  - 'image/*'

Have my blueprint as example.

title: Media

form:
  fields:
    tabs:
      type: tabs
      active: 1

      fields:
        gallery:
          type: tab
          title: Media Verwaltung

          fields:
            fileupload:
              type: file
              label: Bild hochladen
              destination: 'page@:/media'
              multiple: true
              limit: 10
              avoid_overwriting: true
              filesize: 5
              accept:
                - 'image/*'
                - 'video/*'
                - '.pdf'
            mediaOrganizr:
              label: Datein verwalten, hochladen, löschen
              type: pagemedia
              ## NOT WORKING ##
              accept:
                - 'image/*'
                - 'video/*'
                - '.pdf'

So is there a way of limiting the upload or the allowed filetypes at all?

Also I found out that in pagemedia.html.twig on line 25
{% set uploadLimit = grav.config.system.media.upload_limit / 1024 / 1024 %} .media.upload_limit is never set on default in the system.yaml?

Could need some help here :slight_smile:

Cheers

Anyone? :slight_smile: