title: ftp_put to upload files to a server problems
body: <p>I have an HTML form that is intended to allow file uploads to a server. I am programming an FTP client which is going well so far except that the files will not upload to the server. My form is as follows:</p>
  
  <pre><code>&lt;form action='upload.php' id='upload'&gt;
      &lt;input type='file' name='file' /&gt;
      &lt;input name='file_name' placeholder='File Name' /&gt;
      &lt;input type='submit' value='upload' /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And here is my php:</p>
  
  <pre><code>&lt;?php
      $ftp_connection = ftp_connect($_COOKIE['domain']);
      if(@ftp_login($ftp_connection, $_COOKIE['username'], $_COOKIE['password'])) {
          ftp_put($ftp_connection, $_REQUEST['file_name'], $_REQUEST['file']);
      }
      ftp_close($ftp_connection);
  ?&gt;
  </code></pre>
  
  <p>Also note that all of those cookies work perfectly fine, as I use them to login to the FTP GUI.</p>