title: File uploading is not working on live server
body: <blockquote>
    <p>Warning: move_uploaded_file(/images/24_silver_2_1.jpg): failed to open
    stream: No such file or directory in
    C:\Inetpub\vhosts\leojungen.com\httpdocs\launch-complaint.php on line
    72</p>
    
    <p>Warning: move_uploaded_file(): Unable to move
    'C:\Windows\Temp\php19A2.tmp' to '/images/24_silver_2_1.jpg' in
    C:\Inetpub\vhosts\leojungen.com\httpdocs\launch-complaint.php on line
    72</p>
  </blockquote>
  
  <pre><code>function uploadMultipleFiles($complaintId){
      global $_pdo;$path = '';
      // Count # of uploaded files in array
      $total = count($_FILES['files']['name']);
      // Loop through each file
      for($i=0; $i&lt;$total; $i++) {
          //Get the temp file path
          $tmpFilePath = $_FILES['files']['tmp_name'][$i];
          //Make sure we have a filepath
          if ($tmpFilePath != ""){
              //Setup our new file path
              $newFilePath = "/images/".$complaintId."_".$_FILES['files']['name'][$i];
              //Upload the file into the temp dir
              //echo "path: "; print_r($_SERVER);exit;
              move_uploaded_file($tmpFilePath,$newFilePath);
          }
          $path .= $complaintId."_".$_FILES['files']['name'][$i]."^";
      }
  }
  </code></pre>
  
  <p>In my local environment everything is working file, but when i deployed it on live, it is not working.</p>