You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can refer to the sendAttachment() and onFileInput() functions in this file from another repo.
Which basically takes in the file input when user uploads it and eventually calls the same chatSession.sendAttachment() in this repo - ref.
I have a problem with the method in question > chatSession.sendAttachment()
This is what is reported in the documentation:
attachment object is the actual file that will be sent to agent from end-customer and vice versa.
I tried to send the attachment both as a File and as a Blob type.
In both cases I get this error
TypeError: Cannot read properties of undefined (reading 'type')
I have noticed that the documentation is quite vague about the attachments.
Has anyone used the method successfully and can you help me?
The text was updated successfully, but these errors were encountered: