From 1e1c37af208f948a0c12f41fd13c4f9153343e59 Mon Sep 17 00:00:00 2001 From: Jonathan McDill Date: Tue, 15 Aug 2017 13:06:36 -0400 Subject: [PATCH] update Readme --- README.md | 2 ++ package.json | 2 +- src/ngx-uploader/classes/ngx-uploader.class.ts | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index caa495be..ec324e2c 100644 --- a/README.md +++ b/README.md @@ -56,8 +56,10 @@ export interface UploadFile { name: string; // original name of the file size: number; // size of the file in bytes type: string; // mime type of the file + form: FormData; // FormData object (you can append extra data per file, to this object) progress: UploadProgress; response?: any; // response when upload is done (parsed JSON or string) + responseStatus?: number; // response status code when upload is done } // output events emitted by ngx-uploader diff --git a/package.json b/package.json index 20b72a28..fff2df43 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngx-uploader", - "version": "3.3.7", + "version": "3.3.8", "main": "bundles/ngx-uploader.umd.js", "module": "index.js", "esnext": "index.js", diff --git a/src/ngx-uploader/classes/ngx-uploader.class.ts b/src/ngx-uploader/classes/ngx-uploader.class.ts index 4c53661f..09416a16 100644 --- a/src/ngx-uploader/classes/ngx-uploader.class.ts +++ b/src/ngx-uploader/classes/ngx-uploader.class.ts @@ -93,7 +93,7 @@ export class NgUploaderService { this.fileList = toArray(this.fileList).concat(toArray(files)); let i = this.files.length; - this.files.push(...[].map.call(files, (file: File, i: number) => { + this.files.push(...[].map.call(files, (file: File) => { const uploadFile: UploadFile = { fileIndex: i, id: this.generateId(),