more to test object copying

This commit is contained in:
Cassie Tarakajian 2017-05-13 21:46:58 -04:00
parent dc9ad0eea9
commit 15346c9a00

View file

@ -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}` });
}); });
} }