From dd4e1b5e97c79d1245e713fd4dfa1be2af074b7d Mon Sep 17 00:00:00 2001 From: Lawrence Wagerfield Date: Wed, 13 Sep 2023 08:28:56 +0100 Subject: [PATCH] Update README.md --- README.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index cc4fde2..60b866f 100644 --- a/README.md +++ b/README.md @@ -147,9 +147,9 @@ uploadWidget.open({ multi: true }).then(files => { ## 👀 More Examples -### Creating an Image Uploader — [Try on CodePen](https://codepen.io/bytescale/pen/gOXEWWB?editors=1010): +### Creating a profile picker — [Try on CodePen](https://codepen.io/bytescale/pen/gOXEWWB?editors=1010): -

Upload Widget Demo

+

Upload Widget Demo

```javascript uploadWidget @@ -178,13 +178,7 @@ The image cropper uses server-side image cropping, and works like so: - The `filePath` in the result will reference the JSON file. 1. When a JSON file is requested via the [Image Processing API](https://www.bytescale.com/docs/image-processing-api), then the crop described by the JSON file will be applied first, followed by any additional transformations you have specified via the URL. -### Creating a "Single File" Upload Button — [Try on CodePen](https://codepen.io/bytescale/pen/WNXmjjq?editors=1010): - -```javascript -uploadWidget.open().then(files => alert(JSON.stringify(files))); -``` - -### Creating a "Multi File" Upload Button — [Try on CodePen](https://codepen.io/bytescale/pen/RwjdVxY?editors=1010): +### Uploading multiple files — [Try on CodePen](https://codepen.io/bytescale/pen/RwjdVxY?editors=1010): ```javascript uploadWidget.open({ multi: true }).then(files => alert(JSON.stringify(files)));