title: Store PDF file in JS variable
body: <p>Here comes the html code</p>
  
  <pre><code>&lt;input type="text" class="txtbox" placeholder="Name" id="name" name="name" /&gt;
  &lt;input type="text" class="txtbox" placeholder="E-mail"id="email" name="email" /&gt;
  &lt;input type="text" class="txtbox" placeholder="Phone" id="phone" name="phone" /&gt;
  &lt;input type="file" class="txtbox" name="file" id="resume"&gt;
  &lt;input name="submit" id="submitbutton1" value="Apply Now" type="button" onClick="submitbutton1()" class="txtbox"&gt; 
  </code></pre>
  
  <p>and my js function is as follows</p>
  
  <pre><code>&lt;script&gt;
  function submitbutton1() 
  {
    console.log("here");
    var name=$("#name").val();
    console.log(name);
    var email=$("#email").val();
    console.log(email);
    var phone=$("#phone").val();
    console.log(phone);
    var tal={"name":name,"email":email,"phone": phone};
    $.ajax({
     type: "POST",
     url: "email.php",
     data: tal,    
    success: function(ch)
    {     
      console.log(ch); 
    }
  });
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>I would like to store the value of that pdf file into a js variable so that I can post all these variables into email.php Is it possible to store a pdf file in a js variable? If it is possible how? Please help me...</p>