Hello,
I’m on implementing chatting using uikit-react 3.0.0-beta2 on web, and on paid plan with Auto-thumbnail generator feature. But I couldn’t find enabling thumbnail generation on UI-kit. can you please help?
I found onBeforeSendFileMessage and tried to override like this:
const channelProps = {
channelUrl: sendbirdChannelId,
onBeforeSendFileMessage: (
file: File,
quotedMessage?: SendBird.UserMessage | SendBird.FileMessage
): SendBird.FileMessageParams => {
const params = new sb.FileMessageParams();
params.file = file;
params.thumbnailSizes = [{ maxWidth: 200, maxHeight: 200 }];
return params;
},
...
but it returns error on uploading images:
{
"message": null,
"error": {
"name": "SendBirdException",
"code": 800110
}
}
"SendBirdException: Invalid parameter.
at new t (http://localhost:56549/application.cae4c36b.js:56940:8697)
at r.value (http://localhost:56549/application.cae4c36b.js:56940:299216)
at r.value (http://localhost:56549/application.cae4c36b.js:56940:295284)
at r.value (http://localhost:56549/application.cae4c36b.js:56940:295646)
at r.value (http://localhost:56549/application.cae4c36b.js:56940:296924)
at r.value (http://localhost:56549/application.cae4c36b.js:56940:293900)
at r.value (http://localhost:56549/application.cae4c36b.js:56940:302663)
at r.value (http://localhost:56549/application.cae4c36b.js:56940:235345)
at http://localhost:56549/application.cae4c36b.js:73591:44
at onFileUpload (http://localhost:56549/application.cae4c36b.js:87510:7)"