Skip to main content
Module

x/mandarinets/deps.ts>FormDataReader#read

Mandarine.TS is a typescript, decorator-driven framework that allows you to create server-side applications. Mandarine.TS provides a range of built-in solutions such as Dependency Injection, Components, ORM and more. Under its umbrella, Mandarine.TS has 4 modules: Core, Data, Security and MVC, these modules will offer you the requirements to build a Mandarine-powered application.
Latest
method FormDataReader.prototype.read
import { FormDataReader } from "https://deno.land/x/mandarinets@v2.3.2/deps.ts";

Reads the multipart body of the response and resolves with an object which contains fields and files that were part of the response.

Note: this method handles multiple files with the same name attribute in the request, but by design it does not handle multiple fields that share the same name. If you expect the request body to contain multiple form data fields with the same name, it is better to use the .stream() method which will iterate over each form data field individually.

Parameters

optional
options: FormDataReadOptions = [UNSUPPORTED]

Returns

Promise<FormDataBody>