title: How to change a file input's FileList programmatically?
body: <p>I have this <code>input</code> of type <code>&quot;file&quot;</code>, and I want to change its <code>files</code> list.  Example:</p>
  <pre><code>&lt;input type = &quot;file&quot; id = &quot;fileinput&quot; /&gt;
  &lt;script type = &quot;text/javascript&quot;&gt;
    document.getElementById(&quot;fileinput&quot;).files = [10];
  &lt;/script&gt;
  </code></pre>
  <p>The problem is that the <code>fileinput</code> element's <code>files</code> list is not set. How do I do it?</p>