A resolved file from a multipart/form-data request. Has the same properties as the File from multer but adds property metadata.

Implements

Constructors

Properties

destination: string

DiskStorage only: Directory to which this file has been uploaded.

fieldname: string

Name of the form field associated with this file.

filename: string

DiskStorage only: Name of this file within destination.

mimetype: string

Value of the Content-Type header for this file.

originalname: string

Name of the file on the uploader's computer.

path: string

DiskStorage only: Full path to the uploaded file.

size: number

Size of the file in bytes.