OnProgress not triggered when using FileUpload Component

UI Components for Angular
Post Reply
Dregop
Posts: 3
Joined: 26 Feb 2020, 15:15

24 Nov 2020, 18:03

Hello guys :D ,

I have been trying to use the OnProgress Event with my fileupload component but the event is not triggered, i wonder what i am not doing right.

app.component.html

Code: Select all

...
<p-fileUpload
	name=files[] multiple="multiple" [url]="urlUpload" [accept]="uploadAcceptTypes" 
	(onProgress)="onUploadProgress($event)" (onUpload)="onRulesUpload($event)" (onError)="onUploadError($event)" 
	(onSelect)="onSelectFiles($event)">
 </p-fileUpload>
 ...
 
app.component.ts

Code: Select all

...
public onRulesUpload(event): void {
	console.log('#on rules upload', event); # is printed
}
public onUploadError(event): void {
	console.log('#on error upload', event); # is printed
}
public onUploadProgress(event): void {
	console.log('#on upload progress', event); #not printed in console
}
All the other events are triggered and i can see it in the console. As you can see i am not in custom mode, do i need to be to make this work ? (That would be an issue cause the content-type is incorrect when i try to upload in custom mode).

Do you guys have any idea on how to make this work not in custom mode ?

Kind regards,

Dregop

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests