x/oak/mod.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
interface FormDataFile
import { type FormDataFile } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/mod.ts?p=prototype.%5BSymbol.for%28%22nodejs.util.inspect.custom%22%29%5D&s=FormDataFile";

A representation of a file that has been read from a form data body. Based on the FormDataReadOptions that were passed when reading will determine if files are written to disk or not and how they are written to disk. When written to disk, the extension of the file will be determined by the content type, with the .filename property containing the full path to the file.

The original filename as part of the form data is available in originalName, but for security and stability reasons, it is not used to determine the name of the file on disk. If further processing or renaming is required, the implementor should do that processing.

Properties

optional
content: Uint8Array
[src]

When the file has not been written out to disc, the contents of the file as a {@link Uint8Array}.

contentType: string[src]

The content type of the form data file.

optional
filename: string
[src]

When the file has been written out to disc, the full path to the file.

name: string[src]

The name that was assigned to the form data file.

originalName: string[src]

The filename that was provided in the form data file.