Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Validator for the maximum size of a file up to a max of 2GB
INI_SIZE = 'fileUploadErrorIniSize'
Details FORM_SIZE = 'fileUploadErrorFormSize'
Details PARTIAL = 'fileUploadErrorPartial'
Details NO_FILE = 'fileUploadErrorNoFile'
Details NO_TMP_DIR = 'fileUploadErrorNoTmpDir'
Details CANT_WRITE = 'fileUploadErrorCantWrite'
Details EXTENSION = 'fileUploadErrorExtension'
Details ATTACK = 'fileUploadErrorAttack'
Details FILE_NOT_FOUND = 'fileUploadErrorFileNotFound'
Details UNKNOWN = 'fileUploadErrorUnknown'
Detailsarray $_files = 'array'Internal array of files
Detailsarray $_messageTemplates = 'array'
Details__construct(
array|Zend_Config $files
=
array
)
:
voidSets validator options
The array $files must be given in syntax of Zend_File_Transfer to be checked If no files are given the $_FILES array will be used automatically. NOTE: This validator will only work with HTTP POST uploads!
Details_throw(
string $file, string $errorType
)
:
falseThrows an error of the given type
DetailsgetFiles(
$file
=
null
)
:
arrayReturns the array of set files
DetailsisValid(
string $value, $file
=
null
)
:
booleanDefined by Zend_Validate_Interface
Returns true if and only if the file was uploaded without errors
DetailssetFiles(
array $files
=
array
)
:
Zend_Validate_File_UploadSets the files to be checked
Details