📤 Загрузить файл
POST /cmd/upload
{
"user": "username",
"password": "password",
"filename": "file.txt",
"file": "base64_encoded_content"
}
curl -X POST https://filetracker.aleshkalarin2002.workers.dev/cmd/upload -H "Content-Type: application/json" -d '{"user":"alex","password":"123","filename":"test.txt","file":"SGVsbG8="}'
🗑 Удалить файл
POST /cmd/delete
{
"user": "username",
"password": "password",
"code": "ABC123"
}
curl -X POST https://filetracker.aleshkalarin2002.workers.dev/cmd/delete -H "Content-Type: application/json" -d '{"user":"alex","password":"123","code":"ABC123"}'
🔧 Получить base64 в Linux
base64 -w 0 test.txt
🔧 Получить base64 в Windows
certutil -encode test.txt encoded.txt
type encoded.txt
💡 Вставь содержимое encoded.txt без лишних пробелов