lib/ezutils/classes/ezhttpfile.php
File containing the eZHTTPFile class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- lib
- Version
- 4.6.0
\eZHTTPFile
Package: lib
File containing the eZHTTPFile class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
Constants
Properties
Methods


canFetch(
string $httpName, bool | int $maxSize
=
false
)
:
bool | int
static
Returns whether a file can be fetched.
Parameters
Returns
Name | Type | Description |
---|---|---|
$httpName | string | Name of the file. |
$maxSize | bool | int | Whether a maximum file size applies or size in bytes of the maximum allowed. |
Type | Description |
---|---|
bool | int | true if the HTTP file $httpName can be fetched. If $maxSize is given, the function returns eZHTTPFile::UPLOADEDFILE_OK if the file can be fetched, eZHTTPFile::UPLOADEDFILE_DOES_NOT_EXIST if there has been no file uploaded, eZHTTPFile::UPLOADEDFILE_EXCEEDS_PHP_LIMIT if the file was uploaded but size exceeds the upload_max_size limit (set in the PHP configuration), eZHTTPFile::UPLOADEDFILE_EXCEEDS_MAX_SIZE if the file was uploaded but size exceeds $maxSize or MAX_FILE_SIZE variable in the form. eZHTTPFile::UPLOADEDFILE_MISSING_TMP_DIR if the temporary directory is missing eZHTTPFile::UPLOADEDFILE_CANT_WRITE if the file can't be written eZHTTPFile::UPLOADEDFILE_UNKNOWN_ERROR if an unknown error occured |