title: PHP file uploaded showing false
body: <p>I have a form that has multiple file uploads and each input is uniquely named, however, when attempting to get the uploaded file, my test if showing false.</p>
  
  <p>Please find the code below. I am at a loss as to why this is happening.</p>
  
  <pre><code>&lt;label class="label" for="uploadfile"&gt;Contract:&lt;/label&gt;
  &lt;input name="'.$ICP.'_uploadedfile" id="'.$ICP.'_uploadedfile" type="file" /&gt;
  </code></pre>
  
  <p>The $ICP var is looped out, as there can be multiple instances, so this way each name is unique and on the server side, the POST is requested for each loop of the ICP.</p>
  
  <pre><code>while($icp_details = mysqli_fetch_array($ICP_exist_qry)){
       $ICP_ID = stripslashes($icp_details['ICP_ID']);
       if(!file_exists($_FILES[$ICP_ID."_uploadedfile"]['tmp_name']) || !is_uploaded_file($_FILES[$ICP_ID."_uploadedfile"]['tmp_name'])) {
               echo false;
       } else {
               echo true;
       }
  }
  </code></pre>
  
  <p>I am not having any problems retrieving the values of the other posted inputs, just the files uploaded part.</p>
  
  <p>Any help on this one is appreciated. :)</p>
  
  <p>Note: Form is being submitted by Ajax. </p>