Update README for Uppy 0.30.0

parent 351570c4
...@@ -101,9 +101,9 @@ uploaded file data (this example assumes your temporary Shrine S3 storage has ...@@ -101,9 +101,9 @@ uploaded file data (this example assumes your temporary Shrine S3 storage has
`prefix: "cache"` set): `prefix: "cache"` set):
```js ```js
uppy.on('upload-success', function (file, data, uploadURL) { uppy.on('upload-success', function (file, response) {
var uploadedFileData = JSON.stringify({ var uploadedFileData = JSON.stringify({
id: uploadURL.match(/\/cache\/([^\?]+)/)[1], // extract key without prefix id: response.uploadURL.match(/\/cache\/([^\?]+)/)[1], // extract key without prefix
storage: 'cache', storage: 'cache',
metadata: { metadata: {
size: file.size, size: file.size,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment