Open MoritzLost opened 1 year ago
In these situations you can use the fileValidateTypeLabelExpectedTypes
property to show a custom label.
I'll resolve the text wrapping in FilePond v5
@rikschennink Thanks! Yeah, I've overwritten the long label with that property. Though it will be nice to be able to use longer labels, and the default value shouldn't cause layout issues.
Is there an existing issue for this?
Have you updated FilePond and its plugins?
Describe the bug
We have an input with a lot of allowed file types:
We use the
FilePondPluginFileValidateType
plugin to validate the selected document type. However, when the list of supported extensions grows too large, it overflows the item:We can overwrite the label with a shorter error message, but there's not enough space to actually display a list of supported file types. This could be addressed by, for example, allowing the text to wrap and the item to grow vertically with the error message. Or at least to hide the overflowing content with
text-overflow: ellipsis
.Reproduction
Create an input that allows a large number of file formats (see above). Create a FilePond instance with the
FilePondPluginFileValidateType
plugin. Drag and drop a file type that is not supported onto the FilePond instance.Environment