diff --git a/projects/ngx-uploader/src/lib/ngx-uploader.class.ts b/projects/ngx-uploader/src/lib/ngx-uploader.class.ts index ca5109a6..53d41ff5 100644 --- a/projects/ngx-uploader/src/lib/ngx-uploader.class.ts +++ b/projects/ngx-uploader/src/lib/ngx-uploader.class.ts @@ -194,7 +194,7 @@ export class NgUploaderService { }); xhr.onreadystatechange = () => { - if (xhr.readyState === XMLHttpRequest.DONE) { + if (xhr.readyState === xhr.DONE) { const speedAverage = Math.round(file.size / (new Date().getTime() - progressStartTime) * 1000); file.progress = { status: UploadStatus.Done,