diff --git a/upload.sh b/upload.sh new file mode 100755 index 0000000..f07e873 --- /dev/null +++ b/upload.sh @@ -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