Skip to content

Display number of items instead of their name on multiple inputs #89

@jtsimoes

Description

@jtsimoes

Hi! Thanks for this plugin, I've been using a lot!

I wonder if, when the input is for several files (multiple), it shouldn't be better to display the number of selected items, instead of showing their names.

Browsers and Bootstrap v5 already do this by default:
image


This suggestion came about because I tried to upload files with very large names and an overflow happens. Of course it was easy to solve, adding the CSS property overflow: hidden to the class .custom-file-label, but this way most of the file names are hidden.

image

And since the file names already appear in the title when hovering the input, why not show the number of files uploaded in the input? I think it would be more useful!

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