bs-custom-file-input
bs-custom-file-input copied to clipboard
Display number of items instead of their name on multiple inputs
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:
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.
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!
You can even make it configurable to please everyone (by a parameter on init()
, for example)
Hello, have you found a way around this?