Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ljwagerfield committed Sep 13, 2023
1 parent 266d1b4 commit dd4e1b5
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):

<p align="center"><a href="https://www.bytescale.com/docs/upload-widget"><img alt="Upload Widget Demo" width="100%" src="https://raw.githubusercontent.com/bytescale/jquery-uploader/main/.github/assets/demo.webp"></a></p>
<p align="center"><a href="https://www.bytescale.com/docs/upload-widget"><img alt="Upload Widget Demo" width="100%" src="https://raw.githubusercontent.com/bytescale/bytescale-upload-widget/main/.github/assets/demo.webp"></a></p>

```javascript
uploadWidget
Expand Down Expand Up @@ -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)));
Expand Down

0 comments on commit dd4e1b5

Please sign in to comment.