title: Uncaught TypeError: Cannot read property 'size' of undefined
body: <p>Uncaught TypeError: Cannot read property 'size' of undefined.
  code-</p>
  
  <pre><code>if (document.getElementById('pic')[0].size &gt; 102400) {
          alert("Pic size exceeds");
      }
  </code></pre>