Skip to content

mgt-file-list should support both filtering by file extensions but also return folders #1749

Description

@sebastienlevert

Proposal: mgt-file-list should support both filtering by file extensions but also return folders

Description

Right now, when filtering by file extension, we automatically lose the ability to drill through the file hierarchy as we only return the current folders files, but ignore folders.

Rationale

This would allow for a more fined-grained experience and would help with #1741

Preferred Solution

Adding a new property on the mgt-file-list component to allow something like :

<mgt-file-list file-extensions="pdf,docx" preserve-folders></mgt-file-list>
Attribute Property Description
preserve-folders preserveFolders Only available when file-extensions is used. Will return folders when specified. Default false

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Proposed 💡

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions