diff --git a/src/services/ngx-uploader.ts b/src/services/ngx-uploader.ts index 24edcad4..cfe5fcf8 100644 --- a/src/services/ngx-uploader.ts +++ b/src/services/ngx-uploader.ts @@ -82,12 +82,12 @@ export class NgUploaderService { } }; - xhr.upload.onabort = (e: Event) => { + xhr.upload.onabort = () => { uploadingFile.setAbort(); this._emitter.emit(uploadingFile); }; - xhr.upload.onerror = (e: Event) => { + xhr.upload.onerror = () => { uploadingFile.setError(); this._emitter.emit(uploadingFile); }; @@ -128,7 +128,7 @@ export class NgUploaderService { addFilesToQueue(files: File[]): void { this.clearQueue(); - [].forEach.call(files, (file: File, i: number) => { + [].forEach.call(files, (file: File) => { if (!this.inQueue(file)) { this._queue.push(file); }