Closed AjitKP91 closed 2 months ago
Getting Error:
Change in Code - This Works
async updateContentHandler(req, next) { if (req._path.endsWith("content")) { const response = await SELECT.from(req.target, { ID: req.data.ID }).columns("url"); if (response?.url) { const Key = response.url; const input = { Bucket: this.bucket, Key, Body: req.data.content, Region: this.options.credentials.region }; const multipartUpload = new Upload({ // client: new S3Client({}), **client: this.client,** params: input, }); // TODO: add malware scan // const stored = super.put (Attachments, metadata) await Promise.all([multipartUpload.done()]); } } else { next(); } }
@AjitKP91 Thanks for reporting the issue! here is the PR : https://github.com/cap-js/attachments/pull/43/files
Getting Error:
Change in Code - This Works