Skip to content

Commit 94ffee0

Browse files
committed
Release 4.7.1
1 parent 21879d2 commit 94ffee0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ const options = {
199199
reset, // Resets the widget when called.
200200
updateConfig // Updates the widget's config by passing a new config
201201
}) => {}, // object to the method's first parameter.
202-
onUpdate: files => {}, // Called each time the list of uploaded files change.
202+
onUpdate: (event) => { // Called each time the Upload Widget's list of files change.
203+
// event.pendingFiles // Array of files that are either uploading or queued.
204+
// event.uploadedFiles // Array of files that have been uploaded and not removed.
205+
},
203206
onPreUpload: async file => ({
204207
errorMessage: "Uh oh!", // Displays this validation error to the user (if set).
205208
transformedFile: file // Uploads 'transformedFile' instead of 'file' (if set).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bytescale/upload-widget-react",
3-
"version": "4.7.0",
3+
"version": "4.7.1",
44
"author": "Bytescale <hello@bytescale.com> (https://www.bytescale.com)",
55
"description": "React File Upload UI Widget — Lightweight & supports: drag and drop, multiple uploads, image cropping, customization & more 🚀 Comes with Cloud Storage 🌐",
66
"license": "MIT",

0 commit comments

Comments
 (0)