The result when parsing multipart/form-data request bodies. Has a resolved object with all the request bodies values on their respective keys.

Type Parameters

  • FormDataType extends object

Properties

Methods

Properties

tempFolder: string

The temporary folder where all files are cached. Should be deleted after you handled the form data with the cleanup method.

The resolved value as an object, containing all files and values correctly typed.

Methods

  • Creates a new form data object from the given input.

    Type Parameters

    • FormDataType extends object

    Parameters

    • value: FormDataType

      The actual value of the form data.

    • tempFolder: string

      The temporary folder that was created on uploading the form data.

    • cleanupAfterMs: number

      A timeout after which the temporary folder is save to delete.

    Returns Promise<FormData<FormDataType>>

    A new FormData object.