title: how to read FormData object in php
body: <p>Hello everyone I am posting a sample code in which I am uploading a file using Ajax JQuery. All thing works fine but I want to read the file content in my php code. So what is the syntax to read it?</p>
  
  <pre><code>    &lt;?php
  
  ?&gt;
  
  &lt;!--================================html==================================================--&gt;
  
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;AJAX UPLOAD&lt;/title&gt;
      &lt;script type="text/javascript" src="jquery-2.0.2.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          $(document).ready(function(){
              $('#Button_').click(function(){
                  alert("hi");
                  var name= document.getElementById('File_');
                   var alpha=name.files[0];
                  console.log(alpha.name);
                   var data= new FormData();
                   data.append('file',alpha);
                   $.ajax({
                   url:'process.php',
                   data:data,
                   processData:false,
                   contentType:false,
                   type:'POST',
                   success:function(msg){
                   alert(msg);
                   }
                   });
              });
          });
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;input type="file" name="File" id="File_"/&gt;
      &lt;input type="button" name="Button" id="Button_" value="UPLOAD"&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Now I do not know how to read the file data sent via Ajax. So please let me know the code</p>