Hi there,
I’m using the S3 (non-multipart) uploader with Uppy, and I used to have this code after a successful upload:
uppy.on('upload-success', (file, response) => {
// Get S3 key from upload.
const data = {
key: response.body.key,
};
// Store data (with key) in db (code not shown).
This was working with Uppy 2.. and now I’m trying to upgrade to 4.. and the key is no longer showing up in the response data. Any pointers to get it to show up again?
The response looks like this:
{
"body": {
"content-length": "406",
"content-type": "application/xml",
"etag": "\"...\"",
"location": "...",
"ETag": "\"...\""
},
"status": 200,
"uploadURL": "..."
}
and it used to look like (see the bucket and key values included):
{
"status": 201,
"body": {
"location": "...",
"bucket": "...",
"key": "...",
"etag": "\"...\""
},
"uploadURL": "..."
}
Thanks!