apssouza22 / chatflow

Leveraging LLM to build Conversational UIs
BSD 2-Clause "Simplified" License
120 stars 26 forks source link

[WIP] Uploading files #59

Closed vporton closed 11 months ago

vporton commented 1 year ago

Intended to fix issue #9.

I implemented the frontend part of handling uploading files to APIs.

We can use a file dialog that opens more than one file simultaneously, so we have File[] "fileset" as the type. But the current version supports operating of max one fileset at a time, the old ones are deleted, what may lead to frontend exceptions.

I store unique (randomly generated) IDs of files in FileActionResponse to pass them to the backend.

vporton commented 1 year ago

@apssouza22 Is there already any backend (Python) file upload handling code? If there is, please point the source file.

apssouza22 commented 11 months ago

@vporton I have done this already.