PHP/File Directory/ FILE — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
(нет различий)
|
Текущая версия на 10:04, 26 мая 2010
$_FILE Error Constants Constant
<source lang="html4strict">
Name Value Explanation
UPLOAD_ERR_OK 0 No problem
UPLOAD_ERR_INI_SIZE 1 File size exceeds php.ini limit set in upload_max_filesize
UPLOAD_ERR_FORM_SIZE 2 File size exceeds limit set in hidden element named MAX_FILE_SIZE
UPLOAD_ERR_PARTIAL 3 File only partially uploaded
UPLOAD_ERR_NO_FILE 4 File was not uploaded
</source>
$_FILES Arguments
<source lang="html4strict">
Argument Description name The original filename that was uploaded type The MIME type of the uploaded file size The size of the uploaded file (in bytes) tmp_name The temporary name of the file that has been uploaded error The error code that may be generated by the file upload
</source>