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

fileUpload | Notification messages not work #11886

Closed
AlexisDefranoux opened this issue Aug 31, 2022 · 0 comments
Closed

fileUpload | Notification messages not work #11886

AlexisDefranoux opened this issue Aug 31, 2022 · 0 comments
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@AlexisDefranoux
Copy link

AlexisDefranoux commented Aug 31, 2022

Describe the bug

Hello,

I discover a new bug on PrimeNG 14 that didn't exist on PrimeNG 13.

On the FileUpload component, if fileLimit is greater than 0, error messages not working.

For exemple, if you select an .png, nothing happens instead of an invalid type file error:

<p-fileUpload`` accept=".jpg" [fileLimit]="1">

Best regards,

Environment

  • Angular 14.2.0
  • PrimeNG 14.0.2

Reproducer

https://stackblitz.com/edit/angular-ivy-juvguo

Angular version

14.2.0

PrimeNG version

14.0.2

Build / Runtime

Angular CLI App

Language

ES6

Node version (for AoT issues node --version)

16.17.0

Browser(s)

Chrome 104

Steps to reproduce the behavior

  1. Select an invalid type file or invalid file size or invalid file number
  2. No error message appear

Expected behavior

Expected default message error.

@AlexisDefranoux AlexisDefranoux added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Aug 31, 2022
@cetincakiroglu cetincakiroglu added this to the 14.0.3 milestone Sep 1, 2022
@cetincakiroglu cetincakiroglu changed the title FileUpload: Invalid file error not display when fileLimit > 0 fileUpload | Notification messages not work Sep 8, 2022
cetincakiroglu added a commit that referenced this issue Sep 8, 2022
Fixed #11886 - fileUpload | Notification messages not work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants