FileUpload

Attributes
#[Attribute]
\Attribute::TARGET_PROPERTY

Table of Contents

Properties

$addRandomSuffix  : bool
$createUploadFolderIfNotExist  : bool
$duplicationBehavior  : DuplicationBehavior
$uploadFolder  : string
$validation  : array<string|int, mixed>

Methods

__construct()  : mixed

Properties

$addRandomSuffix read-only

public bool $addRandomSuffix = true

$createUploadFolderIfNotExist read-only

public bool $createUploadFolderIfNotExist = true

$uploadFolder read-only

public string $uploadFolder = ''

$validation read-only

public array<string|int, mixed> $validation

Methods

__construct()

public __construct(array<string|int, mixed> $validation[, string $uploadFolder = '' ][, bool $addRandomSuffix = true ][, bool $createUploadFolderIfNotExist = true ][, DuplicationBehavior $duplicationBehavior = DuplicationBehavior::REPLACE ]) : mixed
Parameters
$validation : array<string|int, mixed>
$uploadFolder : string = ''
$addRandomSuffix : bool = true
$createUploadFolderIfNotExist : bool = true
$duplicationBehavior : DuplicationBehavior = DuplicationBehavior::REPLACE
On this page

Search results