Helper for ajax-like file upload with instant preview if the preview placeholder is provided
Methods | ||
---|---|---|
public
|
__construct()
|
# |
public
|
setName(string $name)
|
# |
public
|
setId(string $id)
|
# |
public
|
setLabel(string $label)
|
# |
public
|
setCaption(string $caption)
|
# |
public
|
setValue(array $value, int $id = 0): void
|
# |
public
|
getValue()
|
# |
public
|
getValueId()
|
# |
public
|
setHidden(string $key, mixed $value = ''): void
|
# |
public
|
setUploadDir(string $dir)
|
# |
public
|
setMaxSize(int $size)
|
# |
public
|
setExtensions(array $extensions)
|
# |
public
|
setDimensions(array $dimensions)
|
# |
public
|
setButtons()
|
# |
public
|
isDeletable(boolean $value)
|
# |
public
|
isFileNameDisplayed(boolean $value)
|
# |
public
|
setUploadAsOriginalFileName(boolean $value)
|
# |
public
|
setOnUpload(string $callable)
|
# |
public
|
setOnDelete(string $callable)
|
# |
public
|
setUploadHandler(string $url)
|
# |
public
|
html(array $attributes = [])
|
# |
public
static
|
getDirFromRequest(string $name): mixed
|
# |