This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk / FormDataFieldSummary

FormDataFieldSummary ​

A field of a multipart body, summarized for RequestHookContext.body: never the value of a text field, nor the original name or content of a file.

Properties ​

name ​

name: string

Field name, e.g. file. The file's original name never appears (it may identify the player); it only goes to the gateway, in the multipart itself.


size? ​

optional size?: number

File size, in bytes. Absent on text fields.


type? ​

optional type?: string

MIME type of the file, e.g. image/png. Absent on text fields and on files without a type.