UploadOption uses ConstantsTrait
Enumeration of the option keys accepted by the upload helpers ({@see oihana\controllers\traits\UploadTrait}).
Tags
Table of Contents
Constants
- ALLOWED_MIME_TYPES : string = 'allowedMimeTypes'
- Whitelist of allowed MIME types (array of strings or arrays of strings).
- FILENAME : string = 'filename'
- Override the stored file name (single upload only). Defaults to the sanitized client file name.
- MAX_SIZE : string = 'maxSize'
- Maximum allowed file size in bytes. Larger uploads are rejected. Default: no limit.
- OVERWRITE : string = 'overwrite'
- Whether an existing target file may be overwritten. Default: false.
Constants
ALLOWED_MIME_TYPES
Whitelist of allowed MIME types (array of strings or arrays of strings).
public
string
ALLOWED_MIME_TYPES
= 'allowedMimeTypes'
When set, the stored file is validated with oihana\files\validateMimeType().
FILENAME
Override the stored file name (single upload only). Defaults to the sanitized client file name.
public
string
FILENAME
= 'filename'
MAX_SIZE
Maximum allowed file size in bytes. Larger uploads are rejected. Default: no limit.
public
string
MAX_SIZE
= 'maxSize'
OVERWRITE
Whether an existing target file may be overwritten. Default: false.
public
string
OVERWRITE
= 'overwrite'