PHP/File Directory/ FILE

Материал из Web эксперт
Версия от 07:04, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

$_FILE Error Constants Constant

 
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



$_FILES Arguments

 
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