api request_error ai_generated true

400: Multipart upload failed: boundary not found

ID: api/multipart-upload-error

Also available as: JSON · Markdown
85%Fix Rate
88%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
any active

Root Cause

Multipart form data upload missing or wrong boundary.

generic

Workarounds

  1. 92% success Let HTTP library set Content-Type with boundary automatically
  2. 90% success Use requests.post(url, files={"file": open(f,"rb")})

Dead Ends

Common approaches that don't work:

  1. Manually set Content-Type boundary 78% fail

    Easy to mismatch

  2. Send as base64 in JSON 72% fail

    Large payload, slow