/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-multiple-files-or-f-50e720a86cb2-multiple-files-or-fields-with-same-name-s0576-c0000.md
Multiple files or fields with same name - hono-docs
Multiple files or fields with same name Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt multiple...
Multiple files or fields with same name
Source evidence: /Sources/raw/honojshono/honojshono.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).