PHP/File Directory/ FILE

Материал из Web эксперт
Перейти к: навигация, поиск

$_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>