Skip to content

FileUpload: Uploaded file name is not trimmed when files with larger filenames are uploaded. #7935

@akshayaqburst

Description

@akshayaqburst

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

  1. https://primereact.org/fileupload/#advanced
  2. Upload a file with a larger name.
  3. The file name displayed is not trimmed and display takes a bigger area.
Image

Expected behavior

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

Image

Metadata

Metadata

Assignees

Labels

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

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions