[KongchangAI]
Conceptmultipart

multipart/form-data

An HTTP request body encoding format that splits a request into multiple independent parts, each carrying its own headers. It is suited to transmitting binary data such as images, avoiding the size inflation caused by base64 encoding. Each part can specify its own content type and optional filename metadata.

Timeline (last 90 days)

Nov 14

The Nginx limit should be higher than the application limit because Nginx counts the entire multipart request body (including form data), while the application only validates the size of the file itself; in practice a margin of a few MiB or 10%–20% is often left.

Unverified50%
Nov 14

multipart/form-data splits the request body into multiple parts, containing the file's binary data, boundary delimiters, form field names, file names, Content-Type and other metadata.

Unverified50%
Oct 15

The decision model in @ai-sdk/typesafe-ai version 3.0.19 supports image input in PNG and JPEG formats, implemented via multipart upload.

Unverified50%
Oct 15

multipart/form-data is an HTTP request body encoding format that splits a single request into multiple independent parts, each with its own Content-Type and Content-Disposition headers.

Unverified50%
Oct 15

Compared with base64 inlining into JSON or a text prompt, transmitting binary data via multipart avoids the roughly 33% size inflation and extra encoding/decoding overhead caused by base64 encoding.

Unverified50%

All Facts (5)

Source Articles