/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.

Kinic Wiki
Loading knowledge node
Details

Identity

database
db_23dhmsxlhukv
database_id
db_23dhmsxlhukv
path
/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-parsebody-646640370143-parsebody-s0574-c0000.md
kind
directory
role
markdown_note
children
0

Metadata

created_at
virtual
updated_at
virtual
etag
virtual
metadata_json
{}

Lint Hints

No lightweight warnings.

Outgoing Links

No outgoing links indexed.

Incoming Links

Select a file node to inspect backlinks.

Raw Source

No raw source path inferred.