选择文件,生成下载密钥。
支持任意内容字符串,最大 2MB,有效期 1 小时,仅可下载 1 次。
Endpoint: POST /api/upload
Request JSON:
{
"text": "File content...",
"filename": "output.txt",
"type": "text/plain"
}
Response JSON:
{
"success": true,
"token": "a1b2c3...",
"downloadUrl": "https://.../download?token=..."
}