gpt-3.5-turbo-0125· OpenAI
WildChat-4.8M (AI2)
A code snippet to send files through curl in a loop that goes through files that match…
- User
A code snippet to send files through curl in a loop that goes through files that match the pattern use curl -X POST ‘https://store1.gofile.io/contents/uploadfile’ -H “Authorization: Bearer your_token” -F “file=@file.txt”
- Assistant
#!/bin/bash
TOKEN="your_token" UPLOAD_URL="https://store1.gofile.io/contents/uploadfile"
for file in /path/to/files/*.txt; do curl -X POST TOKEN" -F "file=@$file" done