ideas icon indicating copy to clipboard operation
ideas copied to clipboard

Files field: filter by template or query

Open afbora opened this issue 4 years ago • 1 comments

Files section have the option to set template when uploading, why is there no filtering feature for files field? If a user is uploading with template based, it will likely be expected to filter them.

Expected Feature

partners:
  type: files
  template: partner

Currently

partners:
  type: files
  query: page.images.filterBy('template', 'partner')

afbora avatar Mar 02 '20 11:03 afbora

I've been looking for this feature. It would be nice to be able to use accept on each files field to restrict the mime types.

For instance: I don't want my admin users to be able to upload pngs because these aren't very compress-able and load and render slow.

thomasverleye avatar Jun 14 '20 19:06 thomasverleye