<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/features.file-upload.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'features.file-upload.errors.php',
    1 => 'Error Messages Explained',
    2 => 'Error Messages Explained',
  ),
  'up' => 
  array (
    0 => 'features.file-upload.php',
    1 => 'Handling file uploads',
  ),
  'prev' => 
  array (
    0 => 'features.file-upload.post-method.php',
    1 => 'POST method uploads',
  ),
  'next' => 
  array (
    0 => 'features.file-upload.common-pitfalls.php',
    1 => 'Common Pitfalls',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'features/file-upload.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="features.file-upload.errors" class="sect1">
   <h2 class="title">Error Messages Explained</h2>
   <p class="simpara">
    PHP returns an appropriate error code along with the 
    file array.  The error code can be found in the 
    <code class="literal">error</code> segment of the file array that is created 
    during the file upload by PHP. In other words, the error might be 
    found in <var class="varname"><a href="reserved.variables.files.php" class="classname">$_FILES['userfile']['error']</a></var>.
   </p>
   <p class="simpara">
    The value of this error code is one of the
    <strong><code><a href="filesystem.constants.php#constant.upload-err-cant-write">UPLOAD_ERR_<span class="replaceable">*</span></a></code></strong>
    constants.
   </p>
  </div><?php manual_footer($setup); ?>