diff --git a/README.md b/README.md index 2c97528..f29e08f 100644 --- a/README.md +++ b/README.md @@ -175,7 +175,7 @@ export class AppComponent { apiKey: 'free', // Get API keys from: www.bytescale.com multi: false }; - onUpdate = ({ uploadedFiles, pendingFiles }: UploadWidgetOnUpdateEvent) => { + onUpdate = ({ uploadedFiles, pendingFiles, failedFiles }: UploadWidgetOnUpdateEvent) => { const uploadedFileUrls = uploadedFiles.map(x => x.fileUrl).join("\n"); console.log(uploadedFileUrls); }; @@ -245,6 +245,7 @@ const options = { }) => {}, // object to the method's first parameter. onUpdate: (event) => { // Called each time the Upload Widget's list of files change. // event.pendingFiles // Array of files that are either uploading or queued. + // event.failedFiles // Array of files that failed to upload (due to network or validation reasons). // event.uploadedFiles // Array of files that have been uploaded and not removed. }, onPreUpload: async file => ({ diff --git a/projects/bytescale-upload-widget-angular/package.json b/projects/bytescale-upload-widget-angular/package.json index b9e8413..3110f30 100644 --- a/projects/bytescale-upload-widget-angular/package.json +++ b/projects/bytescale-upload-widget-angular/package.json @@ -1,6 +1,6 @@ { "name": "@bytescale/upload-widget-angular", - "version": "9.5.2", + "version": "9.6.0", "author": "Bytescale (https://www.bytescale.com)", "description": "Angular File Upload UI Widget — Lightweight & supports: drag and drop, multiple uploads, image cropping, customization & more 🚀 Comes with Cloud Storage 🌐", "license": "MIT",