title: move_uploaded_file(...): failed to open stream: No such file or directory
body: <p>I try to insert images in my database with PHP and MySQL with a temporary folder.</p>
  
  <p><strong>I use laravel and this is my controller:</strong></p>
  
  <pre><code>if(isset($_FILES['img_masc']))
  {
      $img=$_FILES['img_masc']['name'];
      $ruta= $_FILES['img_masc']['tmp_name'];
  }
  
  $destino='../../../Perf_Masc/'.$img;
  $masc-&gt;img=$destino;
  //copy($ruta, $destino);
  move_uploaded_file($ruta, $destino); //line 49
  </code></pre>
  
  <p><strong>This is my view:</strong></p>
  
  <pre><code>&lt;form method="POST" action="/RegMasc" enctype= "multipart/form-data" &gt;
      &lt;div&gt;
          &lt;input required name="img_masc" type="file"/&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p><strong>This is my error:</strong></p>
  
  <blockquote>
    <p>ErrorException in line 49:
    move_uploaded_file(../../../Perf_Masc/AF5.jpg): failed to open stream: No such file or directory</p>
  </blockquote>
  
  <p>I try with so much things and also with the copy function and is not working anyway</p>