Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIle Upload component not working correctly after delete selected file issue #7497

Open
bhoomesh-spe opened this issue Dec 12, 2024 · 1 comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@bhoomesh-spe
Copy link

Describe the bug

We have created the SPFx React project. We used the PrimeReact library for that project.
We have created a form. This form contains multiple PrimeReact controls.

We have attached multiple images (PNG, JPG, JPEG). Remove anyone from those formats and submit the form. The new item contains all the attached images except the deleted one. This is the expected behavior of the File Upload control.

We have attached multiple files (Word, Excel, PowerPoint, PDF) remove anyone from those formats and submit the form. The new item does not contain any attached files. This is some unexpected behavior of the File Upload control.

Reproducer

No response

System Information

"primeflex": "^3.3.1",
"primeicons": "^7.0.0",
"primereact": "^9.4.0",

Steps to reproduce the behavior

  1. Open add new form
  2. Selected multiple files (Word, Excel, PowerPoint, PDF) from the local drive.
  3. Removed any one file from those files.
  4. Submitted the form

Expected behavior

The File Upload control should attach all files except deleted while submitting the form.

When we have attached multiple files (Word, Excel, PowerPoint, PDF) remove anyone from those formats and submit the form. The new item should contain all files except the deleted one.

Thanks

@bhoomesh-spe bhoomesh-spe added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 12, 2024
@bhoomesh-spe bhoomesh-spe changed the title FIle Upload component delete selected file FIle Upload component not working correctly after delete selected file issue Dec 12, 2024
@sja-cslab
Copy link
Contributor

Please update primereact to 10.8.5 and see if the issue persists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants