Closed OctaveIdeas closed 9 months ago
Hi @OctaveIdeas,
ChatJS is working as expected. ChatJS is a wrapper around the JavaScript AWS SDK, so it contains additional logic. The actual GetAttachment API will return the S3 url.
downloadAttachment()
will return the actual file as mention in the README doc. It will get the url AND download, please refer to this code block: [ref]
Going to resolve this issue now. Please feel free to open further issues or comment if documentation is unclear Thank you, -Spencer
I am using connect stream with angular i have setup the custom CCP for Chat widget. plain messages are working perfectly fine. but when i sent Media message through streams it returns an attachment ID, I invoke the downland attachment api and pass the attachment Id as a parameter. What i expect: I expect in response it deliver the S3 URL, as mentioned in the Document. What i get: I get the blob in response of download attachment Api
const chatAttachmentResponse = await controller.downloadAttachment({ attachmentId: response.data.Attachments[0].AttachmentId }); console.log("Download Attachment Responmse is :: ", chatAttachmentResponse);
Response :