title: How can I check if the browser support HTML5 file upload (FormData object)?
body: <p>How can I check if the browser support HTML5 file upload (FormData object)?</p>
  
  <pre><code>var fd = new FormData();
  </code></pre>
  
  <p>Following the answer from this <a href="https://stackoverflow.com/questions/4712427/html5-file-upload-feature-detections-in-browser">post</a>, but the code does not return correct answer about the browser,</p>
  
  <pre><code>window.onload = function()
  {
   if (!!window.FileReader)
   {
    alert('supported');
   }
   else
   {
    alert('not supported');
   }
  }
  
  
  Firefox - supported
  Chrome - supported
  Opera - supported
  Safari - not supported
  IE9 - not supported
  </code></pre>
  
  <p>But the correct browser support should be,</p>
  
  <pre><code>Firefox - supported
  Chrome - supported
  Opera - not supported
  Safari - supported
  IE9 - not supported
  </code></pre>
  
  <p>I have tested the html 5 file upload on <strong>Opera</strong> and it is <strong>not</strong> working for sure. </p>
  
  <p>I am sure that <strong>safari</strong>  supports html 5 file upload.</p>