{
  "id": "python/fastapi-upload-file-size",
  "signature": "multipart.multipart.MultipartParseError: File size exceeded limit",
  "signature_zh": "Multipart解析错误：文件大小超过限制。",
  "regex": "multipart\\.multipart\\.MultipartParseError:\\ File\\ size\\ exceeded\\ limit",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "上传的文件大小超过了FastAPI或服务器的限制。",
  "root_cause_type": "generic",
  "root_cause_zh": "上传的文件大小超过了FastAPI或服务器的限制。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "尝试修改客户端请求，但服务器限制未变。",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "忽略错误，导致连接中断。",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.8,
      "how": "配置服务器限制：\n# 对于uvicorn，使用--limit-concurrency或设置max_request_size",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "在应用层检查文件大小：\nfile = await request.form()\nif file.size > MAX_SIZE:\n    raise HTTPException(413)",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.81,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-05-02",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}