Agent/upload.sh

12 lines
250 B
Bash
Raw Normal View History

2023-06-13 04:04:37 +00:00
#!/bin/sh
find ~/brain -name "*.md" -print0 | while IFS= read -r -d '' file
do
echo "Posting $file"
curl -X POST -H "Content-Type: multipart/form-data" -F "files=@$file" http://localhost:8000/documents/?document_type=md
sleep 30
done