Skip to content

Commit

Permalink
Release 4.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ljwagerfield committed Sep 18, 2023
1 parent 1cbd3fd commit a985e48
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions examples/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -52,7 +50,6 @@ const dropZoneInitialConfig: UploadWidgetConfig = {
primary: "#8b63f1"
}
},
onUpdate: x => console.log(JSON.stringify(x)),
onInit: x => {
dropzoneMethods = x;
}
Expand Down

0 comments on commit a985e48

Please sign in to comment.