title: is_uploaded_file says error but no error code returns
body: <p>I have the following code:</p>
  
  <pre><code> if (!is_uploaded_file($_FILES['sb_file']['tmp_name']))
                             {
                                 echo "Error in Uploading File &lt;br&gt;".$_FILES["sb_file"]["error"][$count];
                             }
  </code></pre>
  
  <p><code>is_uploaded_file</code> returns false , even $_FILES['sb_file']['errors'] return 0 but file is not moving in destination folder. How do I trace error?</p>
  
  <pre><code>foreach ($_FILES['sb_file']['name'] as $filename)
          {
              //make sure no empty thing goes
              if($filename!=""&amp;&amp;$filename!=null)
              {
                  $temp = explode(".", $filename);
                  $extension = end($temp);
                  $upload_folder = "/home/content/w/k/1/wk1989/html/".trim($config["UPLOAD_FOLDER"]);
                   if(!(in_array($extension, $allowedExts)))
                      print "$filename has Invalid file Type &lt;br /&gt;";
                   else
                   {
                       $uploaded_file_name = $filename."-".date("YmdHis").".".$extension;
                       if ($_FILES["sb_file"]["error"][$count] &gt; 0)
                          {
                              echo "&lt;br /&gt;Error: " . $_FILES["sb_file"]["error"][$count] . "&lt;br /&gt;";
                          }
                          else
                          {
                              $target_path = "uploads/";
                              $target_path = $target_path.basename( $file_upload['name']); 
                              print "Path = $target_path &lt;br&gt;";
  //                            if(move_uploaded_file($file_upload['tmp_name'], $target_path)) {
  //                            //    echo "The file ".  basename( $file_upload['name']). " has been uploaded";
  //                            } else{
  //                                //echo "There was an error uploading the file, please try again!";
  //                            }
                             move_uploaded_file($_FILES["sb_file"]["tmp_name"][$count],$upload_folder.$uploaded_file_name);
  //                           if (!is_uploaded_file($_FILES['sb_file']['tmp_name'][$count]))
  //                           {
  //                               echo "Error in Uploading File &lt;br&gt;".$_FILES["sb_file"]["error"][$count];
  //                           }
  //                           else
  //                           {
  //                               
  //                           }
                             $is_upload = true;
                             echo "Uploaded = ".$upload_folder.$uploaded_file_name;
  
                          }
                          if($is_upload)
                          {
                              $uploaded_files[] = $upload_folder.$uploaded_file_name;
                          }
                   } 
              }
               $count++;
          }
  </code></pre>