Creates a new MultipartFile instance
Object containing field name, client name, and headers
Validation options for the file
A boolean to know if file is an instance of this class or not
Field name is the name of the field
Client name is the file name on the user client
The headers sent as part of the multipart request
File size in bytes
OptionalextnameThe extension for the file
Upload errors that occurred during processing
OptionaltypeType and subtype are extracted from the content-type
header or from the file magic number
OptionalsubtypeOptionalfileFile path is only set after the move operation
OptionalfileFile name is only set after the move operation. It is the relative path of the moved file
OptionaltmpTemporary path, only exists when file is uploaded using the classic mode
The file metadata
The current state of the file
Whether or not the validations have been executed
A boolean to know if file has one or more errors
Opposite of [[this.isValid]]
The maximum file size limit
Extensions allowed
Validate the file using configured validators
Mark file as moved to its final destination
The name of the moved file
The full path where the file was moved
Moves the file to a given location. Multiple calls to the move method are allowed,
in case you want to move a file to multiple locations.
The destination directory
Optionaloptions: { name?: string; overwrite?: boolean }Move options including name and overwrite flag
Returns file JSON representation
The file holds the meta/data for an uploaded file, along with any errors that occurred during the upload process.