deep-chat icon indicating copy to clipboard operation
deep-chat copied to clipboard

Combination of streaming and mixedFiles not working

Open ki-zeitalter opened this issue 1 year ago • 2 comments

Hi there and first of all thank you for this fantastic component.

Currently I'm using version 1.4.11 and I'm trying to use file upload in combination with streaming responses. When I set mixedFiles and stream to true then the back-end is not able to parse the request correctly. I had a closer look at the RequestDetails and I saw that the content type was changed to "text/plain" instead of "multipart/formdata" when streaming is activated.

Am I doing something wrong here or is the combination not working?

ki-zeitalter avatar Apr 04 '24 05:04 ki-zeitalter

Hi @ki-zeitalter.

This was indeed a bug. I have fixed it in deep-chat-dev and deep-chat-react-dev packages version 9.0.158. These packages behave the same except their names are different. To note, we are preparing for a big release soon, and some of the properties are different. Such as request being called connect and the stream property being moved to connect. Nevertheless, everything is backwards compatible and you should be able to use the old properties as needed, but you will get console and TS warnings which you can ignore.

Let me know if this works for you. Thanks!

OvidijusParsiunas avatar Apr 04 '24 17:04 OvidijusParsiunas

Wow that was quick! It works indeed! Thanks alot!

ki-zeitalter avatar Apr 05 '24 06:04 ki-zeitalter

Hi, the functionality mentioned in this issue has now been released in Deep Chat version 2.0.0.

OvidijusParsiunas avatar Jul 16 '24 12:07 OvidijusParsiunas