mirror of
https://github.com/open-webui/open-terminal.git
synced 2026-11-04 08:10:53 +00:00
refac
This commit is contained in:
1 parent
bf00a389f1
commit
a6df118dfd
3 files changed
+18
-10
No files matched your search
@@ -65,13 +65,13 @@ Output streams as JSONL:
|
||||
|
||||
**From URL:**
|
||||
```bash
|
||||
curl -X POST "http://localhost:8000/files/upload?url=https://example.com/data.csv&path=/tmp/data.csv" \
|
||||
curl -X POST "http://localhost:8000/files/upload?url=https://example.com/data.csv&dir=/tmp" \
|
||||
-H "Authorization: Bearer <api-key>"
|
||||
```
|
||||
|
||||
**Direct upload:**
|
||||
```bash
|
||||
curl -X POST "http://localhost:8000/files/upload?path=/tmp/data.csv" \
|
||||
curl -X POST "http://localhost:8000/files/upload?dir=/tmp" \
|
||||
-H "Authorization: Bearer <api-key>" \
|
||||
-F "file=@local_file.csv"
|
||||
```
|
||||
@@ -79,7 +79,7 @@ curl -X POST "http://localhost:8000/files/upload?path=/tmp/data.csv" \
|
||||
**Via temporary link (no auth needed to upload):**
|
||||
```bash
|
||||
# 1. Generate an upload link
|
||||
curl -X POST "http://localhost:8000/files/upload/link?path=/tmp/data.csv" \
|
||||
curl -X POST "http://localhost:8000/files/upload/link?dir=/tmp" \
|
||||
-H "Authorization: Bearer <api-key>"
|
||||
# → {"url": "http://localhost:8000/files/upload/a1b2c3d4..."}
|
||||
|
||||
@@ -88,6 +88,8 @@ curl -X POST "http://localhost:8000/files/upload/a1b2c3d4..." \
|
||||
-F "file=@local_file.csv"
|
||||
```
|
||||
|
||||
Filename is automatically derived from the uploaded file or URL.
|
||||
|
||||
### Download a File
|
||||
|
||||
```bash
|
||||
|
||||
Reference in new issue
Block a user