title: Put file in folder instead of download
body: <p>I don't know if this is even possible. I have a little website on a server where I can't install any plugins (such as imagemagick). I need to convert a PDF-file to JPG. I have found a solution where the file is sent to convertapi.com and then the user downloads the file. I perfect solution is where after converting the file it goes directly into a folder.</p>
  
  <p>The code I use to convert the file:</p>
  
  <pre><code>&lt;form action="https://v2.convertapi.com/convert/pdf/to/jpg?Secret=kTErGjVONEYDoaLp&amp;download=attachment" method="post" enctype="multipart/form-data"&gt;
     &lt;input type="file" name="File" /&gt;
     &lt;input type="hidden" name="ImageResolutionH" value="199" /&gt;
     &lt;input type="hidden" name="ImageResolutionV" value="222" /&gt;
     &lt;input type="hidden" name="JpgType" value="jpeggray" /&gt;
     &lt;input type="hidden" name="JpgQuality" value="50" /&gt;
     &lt;input type="submit" value="Convert file"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The code I use to upload the file:</p>
  
  <pre><code>    &lt;?php
         if(isset($_FILES['File'])){
            $file_name = $_FILES['File']['name'];
            $file_size =$_FILES['File']['size'];
            $file_tmp =$_FILES['File']['tmp_name'];
            $file_type=$_FILES['File']['type'];
            //$file_ext=strtolower(  end( explode('.',$file_name) ) );
  
            $File=explode('.',$file_name);     
            $b = end($File);    
            $file_ext=strtolower( $b );
  
            $extensions= array("jpeg","jpg","png", "pdf", "txt", "PDF", "Pdf", "PDF", "Pdf");
  
            $errors= array();
            if(in_array($file_ext,$extensions)=== false){
               $errors[]="&lt;br&gt;&lt;h4&gt;&lt;b&gt;Du kan kun upload'e jpeg-, jpg-, png-, pdf- og txt-filer. Hvis du har brug for at upload'e en anden type fil, kan du kontakte mig.&lt;/b&gt;&lt;/h4&gt;";
            }
  
            if($file_size &gt; 2097152){
               $errors[]='&lt;br&gt;&lt;h4&gt;&lt;b&gt;Filen kan maks. være 2 MB stor. Hvis du har brug for at upload\'e en større fil, kan du kontakte mig&lt;/b&gt;&lt;/h4&gt;';
            }
  
            if(empty($errors)==true){
               move_uploaded_file($file_tmp,"documents/thumb/".$file_name);
               echo "&lt;br&gt;&lt;h4&gt;&lt;b&gt;Filen blev upload'et&lt;/b&gt;&lt;/h4&gt;";
            }else{
               print_r($errors);
            }
         }?&gt;
  &lt;form action="" method="POST" enctype="multipart/form-data"&gt;
                  &lt;input type="file" name="a" /&gt;
                      &lt;input type="submit"/&gt;
                  &lt;/form&gt;&lt;br&gt;
  </code></pre>
  
  <p>Can I clash these together so after conversion the file goes to a specific folder.
  Note that I'm a beginner so please explain everything very detailed. :)</p>