Add uploader script

This commit is contained in:
Tyler Perkins 2023-06-13 00:04:37 -04:00
parent 70a12c5820
commit 698a1f6567

11
upload.sh Executable file
View File

@ -0,0 +1,11 @@
#!/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