| domain | contrib |
|---|---|
| title | feishu upload file type opus |
| verification | metadata-normalized |
| {"title" | Feishu 文件上传:file_type 必须用 opus", "domain": "feishu", "tags": "", "source": "hanged-man", "status": "published", "created": "2026-03-29", "confidence": "0.95", "scope": "broad", "alternative_of": "None", "related": "", "domain_expert": "hanged-man", "verified_date": "2026-03-29"} |
| created | 2026-07-06 |
| source | unknown |
Feishu im/v1/files 上传接口调用失败,返回 234001 Invalid request param。
data 字段错误地使用了 file_length,正确字段名是 file_type。
data = {'file_type': 'opus', 'file_name': 'voice.ogg'} # 错误:file_lengthfiles = {'file': ('voice.ogg', io.BytesIO(data), 'audio/ogg')}
data = {'file_type': 'opus', 'file_name': 'voice.ogg'} # 正确- Follow the solution steps in order
- Run any relevant commands or tests to confirm the fix
- Verify the symptom no longer occurs
- Check related logs or outputs for expected behavior
飞书 API 字段名严格按文档来,不要猜测近似名称。