more to test object copying
This commit is contained in:
parent
dc9ad0eea9
commit
15346c9a00
1 changed files with 3 additions and 1 deletions
|
@ -97,9 +97,11 @@ export function copyObjectInS3(req, res) {
|
||||||
};
|
};
|
||||||
const copy = client.copyObject(params);
|
const copy = client.copyObject(params);
|
||||||
copy.on('err', (err) => {
|
copy.on('err', (err) => {
|
||||||
|
console.log('in error');
|
||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
});
|
||||||
copy.on('end', () => {
|
copy.on('end', (data) => {
|
||||||
|
console.log(data);
|
||||||
res.json({ url: `${s3Bucket}${userId}/${newFilename}` });
|
res.json({ url: `${s3Bucket}${userId}/${newFilename}` });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue