-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Feature
Copy link
Labels
Type: EnhancementIssue contains an enhancement related to a specific component. Additional functionality has been addIssue contains an enhancement related to a specific component. Additional functionality has been add
Description
Describe the bug
FileUpload: Uploaded file name is not trimmed when files with larger filenames are uploaded.
Reproducer
https://primereact.org/fileupload/#advanced
System Information
System:
OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
Memory: 1.43 GB / 7.47 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 22.14.0 - ~/.nvm/versions/node/v22.14.0/bin/node
npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm
pnpm: 10.4.1 - ~/.nvm/versions/node/v22.14.0/bin/pnpm
npmPackages:
react: 18.3.1 => 18.3.1
Steps to reproduce the behavior
- https://primereact.org/fileupload/#advanced
- Upload a file with a larger name.
- The file name displayed is not trimmed and display takes a bigger area.

Expected behavior
The file name should be trimmed as per the prop passed or a default file name length.
Expected screenshot attached -

Metadata
Metadata
Assignees
Labels
Type: EnhancementIssue contains an enhancement related to a specific component. Additional functionality has been addIssue contains an enhancement related to a specific component. Additional functionality has been add