From a985e4803e4dc96d7d049cc6c06ec0694e162114 Mon Sep 17 00:00:00 2001 From: Lawrence Wagerfield Date: Mon, 18 Sep 2023 14:39:32 +0100 Subject: [PATCH] Release 4.10.0 --- examples/src/index.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/examples/src/index.ts b/examples/src/index.ts index 48e47e5..1289358 100644 --- a/examples/src/index.ts +++ b/examples/src/index.ts @@ -6,11 +6,9 @@ const apiKey: string = (window as any).UPLOAD_JS_API_KEY ?? "free"; const openUploader = (): void => { UploadWidget.open({ apiKey, - // multi: true, - // mimeTypes: ["image/jpeg", "image/webp", "image/png", "image/heic", "image/svg+xml"], - maxFileCount: 1, - showFinishButton: false, - onUpdate: x => console.log(JSON.stringify(x)), + multi: true, + mimeTypes: ["image/jpeg", "image/webp", "image/png", "image/heic", "image/svg+xml"], + maxFileCount: 10, editor: { images: { cropShape: "circ", cropRatio: 1 / 1 } }, styles: { colors: { @@ -52,7 +50,6 @@ const dropZoneInitialConfig: UploadWidgetConfig = { primary: "#8b63f1" } }, - onUpdate: x => console.log(JSON.stringify(x)), onInit: x => { dropzoneMethods = x; }