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>
...
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
}
Do you guys have any idea on how to make this work not in custom mode ?
Kind regards,
Dregop