Skip to content

[Feature Request]: Allow configurability of file icon actions #19643

@SMassola

Description

@SMassola

The problem

The current file uploader component displays file items whenever a file is added, however, the only action that can be taken on each individual file item is the delete action.

Image

The solution

This feature request is for configurability of the file items of the file uploader, allowing new action icons to be added to each file item.

For example,

  1. Changing the delete icon from a cross to a trash can for each file item,
  2. Adding a download icon action to each file item to download the file,

Image

  1. Adding a view icon action to each file item to view the file,
Image
  1. Changing file item text to a link to view attachment in new tab.
Image Image

Examples

Unable to find live example with these features, but here's a reference to other file uploader components:

https://component.gallery/components/file-upload/

Package

@carbon/web-components, @carbon/react

Application/PAL

UIHub

Business priority

Medium Priority = upcoming release but is not pressing

Available extra resources

I can contribute to both the react and angular implementation.

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Later 🧊

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions