/Knowledge/sources/honojs__hono/llms-full/honorequest-parsebody-multiple-files-or-fields-with-same-name--9a85191dcb6f.md
HonoRequest: parseBody() > Multiple files or fields with same name -...
HonoRequest: parseBody() Multiple files or fields with same name Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llm...
HonoRequest: parseBody() > Multiple files or fields with same name
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#multiple-files-or-fields-with-same-name
Summary
If you have an input field that allows multiple or multiple checkboxes with the same name . ```ts twoslash import { Context } from 'hono' declare const c: Context // ---cut--- const body = await c.req.parseBody({ all: true }) body...
Content
If you have an input field that allows multiple <input type="file" multiple /> or multiple checkboxes with the same name <input type="checkbox" name="favorites" value="Hono"/>.
import { Context } from 'hono'
declare const c: Context
// ---cut---
const body = await c.req.parseBody({ all: true })
body['foo']
all option is disabled by default.
- If
body['foo']is multiple files, it will be parsed to(string | File)[]. - If
body['foo']is single file, it will be parsed to(string | File).
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#multiple-files-or-fields-with-same-name",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / HonoRequest > parseBody() > Multiple files or fields with same name",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 576,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "HonoRequest: parseBody() > Multiple files or fields with same name",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}