FormData

The standard browser object holding the fields of a submitted form as name and value pairs.

In more detail

It is what a browser builds when a form is submitted, and scripts can create one to send fields with fetch. Values are strings or files, so the receiver must validate and convert them.

Example

A Next.js Server Action used as a form action receives a FormData; read fields with formData.get('email').

Related terms

Taught in

References