title: Upload files via jquery $.post
body: <p>For send ajax form i use this code :</p>
  
  <pre><code>&lt;input type="file" class="file_1" id="file" /&gt;
  </code></pre>
  
  <ul>
  <li>note : not use "FORM" tag</li>
  </ul>
  
  <p>My jQuery code :</p>
  
  <pre><code>var file = $('#file').val();
  $.post('form.php', {file:file}, function(data){});
  </code></pre>
  
  <p>And my PHP code :</p>
  
  <pre><code>if($_FILES["file"]["tmp_name"] != '') {
              $fileName = $_FILES["file"]["name"];
              $fileTmpLoc = $_FILES["file"]["tmp_name"];
              $fileType = $_FILES["file"]["type"];
              $fileSize = $_FILES["file"]["size"];
          }
  echo $fileName;
  </code></pre>
  
  <p>But this code not work</p>