-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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: Upload broken for mode='advanced' and customUpload=true #15117
Comments
I also have this same problem. FileUpload component stopped working <p-fileUpload name="uploadedFiles[]" customUpload="true" auto="true" (uploadHandler)="onUpload(section.section,$event)" also using customUpload Angular version 17.3.1 |
Even advanced mode with the auto attribute does not work. https://stackblitz.com/edit/gunrgk?file=src%2Fapp%2Fdemo%2Ffile-upload-advanced-demo.html |
seems like the issue can be solved by using mode=basic, but if you actually need the advanced mode like us there's no way around it. I believe the breaking change was made in v 17.8.0 |
Hi, This issue is duplicate of #15150 Thanks a lot for reporting the issue |
Describe the bug
When using FileUpload like this:
<p-fileUpload (uploadHandler)="handleFileUpload($event)" [auto]="true" [customUpload]="true"></p-fileUpload>
, theuploadHandler
callback won't be called.See fileupload.ts, line 563:
Prior to version 17.8.0, the (working) code was:
Environment
Windows
Reproducer
No response
Angular version
17.3.0
PrimeNG version
17.11.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.16.0
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: