docs: replace the file upload utility (#12153)

* replace-upload-utility

* Update docs/docs/Tutorials/chat-with-files.mdx

* Apply suggestions from code review

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>

* pragma-to-pass-tests
This commit is contained in:
Mendon Kissling
2026-03-13 10:41:13 -04:00
committed by GitHub
parent 7838d0d282
commit 45114192d0
2 changed files with 5 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ This example uses a local Langflow instance, and it asks the LLM to evaluate a s
If you don't have a resume on hand, you can download [fake-resume.txt](/files/fake-resume.txt).
:::tip
For help with constructing file upload requests in Python, JavaScript, and curl, see the [Langflow File Upload Utility](https://langflow-file-upload-examples.21cgwws14kdz.us-east.codeengine.appdomain.cloud/).
For an example of constructing file upload requests in JavaScript, see the [Create a vector RAG chatbot tutorial](/chat-with-rag#load-data-and-generate-embeddings).
:::
1. To construct the request, gather the following information:

View File

@@ -72,8 +72,11 @@ In situations where many users load data or you need to load data programmatical
To load data programmatically, use the `/v2/files/` and `/v1/run/$FLOW_ID` endpoints. The first endpoint loads a file to your Langflow server, and then returns an uploaded file path. The second endpoint runs the **Load Data Flow**, referencing the uploaded file path, to chunk, embed, and load the data into the vector store.
:::tip
For an example of constructing file upload requests in Python, see the [Create a chatbot that can ingest files tutorial](/chat-with-files#send-requests-to-your-flow-from-a-python-application).
:::
The following script demonstrates this process.
For help with creating this script, use the [Langflow File Upload Utility](https://langflow-file-upload-examples.21cgwws14kdz.us-east.codeengine.appdomain.cloud/).
```js
// Node 18+ example using global fetch, FormData, and Blob