Skip to main content
Module

x/attain/core/multipart.ts>FormDataBody

Deno API middleware Server
Go to Latest
interface FormDataBody
import { type FormDataBody } from "https://deno.land/x/attain@1.1.0/core/multipart.ts";

Properties

fields: Record<string, string>

A record of form parts where the key was the name of the part and the value was the value of the part. This record does not include any files that were part of the form data.

Note: Duplicate names are not included in this record, if there are duplicates, the last value will be the value that is set here. If there is a possibility of duplicate values, use the .stream() method to iterate over the values.

optional
files: FormDataFile[]

An array of any files that were part of the form data.