Skip to content

Commit

Permalink
Release 9.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ljwagerfield committed Sep 27, 2023
1 parent b212f08 commit 2b4d89f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down Expand Up @@ -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 => ({
Expand Down
2 changes: 1 addition & 1 deletion projects/bytescale-upload-widget-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bytescale/upload-widget-angular",
"version": "9.5.2",
"version": "9.6.0",
"author": "Bytescale <hello@bytescale.com> (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",
Expand Down

0 comments on commit 2b4d89f

Please sign in to comment.