Hi,
Hi, for me chunk uploading event is not working. Please help me with this. I have tried multiple ways programmatically and through template, none of them works for me. However, normal uploading event works but as I am dealing with large files I need chunk uploads.
This is what I tried first.
HTML
TS
This is what I tried after programmatically.
TS
This is in ngOnInit()
I am using latest version of ej2-angular-inputs. Please let me know what can be done to solve the issue as
I am getting 401 Unauthorized as authorization is necessary.
In both cases it prints nothing and gives Unauthorized error.
I got a solution, for chunk upload I did catch both 'uploading' and 'chunkUploading' events and it worked. I guess the first chunk listens to uploading event and rest to chunkUploading.
Hi Berly Christopher,
Thank you for clarification.
Though, it works programmatically when I append input file to uploader object and add event listeners to that uploader object, but it is still nor working with template below
HTML
TS
None of the event method logs anything for me.
Any idea why this could be an issue?
|
<ejs-uploader #chunkUpload [autoUpload]='false' [asyncSettings]='path' (beforeUpload)='beforeUpload($event)'
(uploading)="onUploading($event)" (chunkUploading)="onChunkUploading($event)"
(success)="onUploadSuccess($event)" multiple='false'>
</ejs-uploader> |