title: Can't upload files with curl (bash)
body: <p>I tried using curl to upload files to <a href="http://galihpa.tk/upload.php" rel="nofollow">this link</a>, my curl command:</p>
  
  <pre><code>curl -F "upload=@/tmp/updater.log" http://galihpa.tk/upload.php
  </code></pre>
  
  <p>after executing that, it gave me this:</p>
  
  <pre><code>root@AngelBeats:~# curl -F "upload=@/tmp/updater.log" http://galihpa.tk/upload.php
  &lt;FORM method="post" name="upload" enctype='multipart/form-data'&gt;
  File : &lt;input type="file" name="upload-file"&gt;&lt;input type="submit" name="btnUploa
  d" value="Upload"&gt;
  </code></pre>
  
  <p>This is the complete code of my <code>upload.php</code></p>
  
  <pre><code>&lt;?
      // untuk memindahkan file ke tempat uploadan
      $upload_path = "upload/";
      // handle aplikasi : apabila folder yang dimaksud tidak ada, maka akan dibuat
      if (!is_dir($upload_path)) {
          mkdir($upload_path);
      } 
      if (isset($_POST['btnUpload'])) { 
          $file = $_FILES['upload-file']['name'];
          $tmp  = $_FILES['upload-file']['tmp_name'];
          // jika $file ada dan tidak kosong
          if ((isset($file)) &amp;&amp; ($file != "")) { 
              // handle apabila sudah ada file sama yang terupload, maka akan dibuat copynya
              $uploadfile = (file_exists($upload_path.$file)) ? $upload_path." copy of ".$file : $upload_path.$file;
              move_uploaded_file($tmp, $uploadfile);
              if (chmod($uploadfile, 0775)) {
                  // tampilkan pesan sukses apabila berhasil mengupload file
                  echo "Sukses mengupload file";
              } else {
                  // tampilkan pesan gagal apabila tidak berhasil mengupload file
                  echo "Gagal mengupload file";
              }
          }
      }
  ?&gt;
  &lt;FORM method="post" name="upload" enctype='multipart/form-data'&gt;
  File : &lt;input type="file" name="upload-file"&gt;&lt;input type="submit" name="btnUpload" value="Upload"&gt;
  &lt;/FORM&gt;
  </code></pre>
  
  <p>Please help.</p>