Skip to content

Make the field widget configurable with file extensions #7

@colorfield

Description

@colorfield

The Frontify finder can be filtered by extensions in

values: [
//'ai',
//'bmp',
//'eps',
'gif',
//'heif',
'jpeg',
'jpg',
'png',
'svg',
//'tif',
'tiff',
'webp',
],

This is currently hardcoded to images, this was ported as is from 2.x branch of the module.

A first approach to limit the extensions would be in a Media provider as e.g. third party settings. But this doesn't make it very portable.

A better approach, that is entity type agnostic is to configure it on the field widget.
In that case, it's perfectly valid to e.g. use the Frontify field outside of a Media context.
Example use case: a taxonomy term with svg icons that doesn't need any other Frontify fields as it's just decorative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions