Skip to content

Restrict file types accepted by the file widget #7955

Description

@tpluscode

It would be useful to restrict what files are selectable in the file widget.

Is your feature request related to a problem? Please describe.

I found this related discussion but the pattern method does not appear to work (any more?).

Describe the solution you'd like

A new widget option is necessary to set the one more more values matching the accept attribute of the HTML file input element, like .jpg, video/*, or application/vnd.openxmlformats-officedocument.wordprocessingml.document

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featurecode contributing to the implementation of a feature and/or user facing functionality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions