mirror of
https://github.com/hanzoai/flow.git
synced 2026-10-17 01:29:18 +00:00
11 lines
364 B
Bash
11 lines
364 B
Bash
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
DEFAULT_UPLOAD_FILE="$SCRIPT_DIR/../../fixtures/sample-upload.txt"
|
|
UPLOAD_FILE="${SAMPLE_UPLOAD_FILE:-$DEFAULT_UPLOAD_FILE}"
|
|
|
|
curl -X POST \
|
|
"$FLOW_URL/v1/files" \
|
|
-H "accept: application/json" \
|
|
-H "Content-Type: multipart/form-data" \
|
|
-H "x-api-key: $FLOW_API_KEY" \
|
|
-F "file=@${UPLOAD_FILE}"
|