/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-parsebody-646640370143-parsebody-s0574-c0000.md
parseBody() - hono-docs
parseBody() Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt parsebody Summary Parse Request body...
parseBody()
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#parsebody
Summary
Parse Request body of type multipart/form-data or application/x-www-form-urlencoded ```ts twoslash import { Hono } from 'hono' const app = new Hono() // ---cut--- app.post('/entry', async (c) => { const body = await c.req.parseBody()...
Content
Parse Request body of type multipart/form-data or application/x-www-form-urlencoded
import { Hono } from 'hono'
const app = new Hono()
// ---cut---
app.post('/entry', async (c) => {
const body = await c.req.parseBody()
// ...
})parseBody() supports the following behaviors.
Single file
import { Context } from 'hono'
declare const c: Context
// ---cut---
const body = await c.req.parseBody()
const data = body['foo']
// ^?body['foo'] is (string | File).
If multiple files are uploaded, the last one will be used.