Skip to content

Selectively enable/disable ConstantConverter for certain MIME types #896

Closed

Description

@RubenVerborgh

Discussed in #895

Originally posted by angelo-v August 6, 2021
I changed set "options_document": true in the mashlib recipe, so also files get rendered via data browser.

But I want to download certain file types, especially PDFs, which does not work with this setting anymore, since the data browser renders instead. How can I exclude certain file types from the data browser rendering?


As a solution, propose optional constructor arguments for string arrays of enableMimeTypes and disableMimeTypes, defaulting to [ '*/* ] and [], respectively. MIME checks should be bypassed for containers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions