Skip to content

Commit

Permalink
update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
oleosjo authored and jkuri committed Aug 15, 2017
1 parent 68522ec commit 1e1c37a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/ngx-uploader/classes/ngx-uploader.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 1e1c37a

Please sign in to comment.