title: How do I find and trigger an event while ignoring image prompt?
body: <p>I have created a chrome extension that gets my desired data-images into a external website file input (<code>fileList</code>) field.</p>
  <p><a href="https://i.stack.imgur.com/oGLbJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oGLbJ.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/GCckr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GCckr.png" alt="enter image description here" /></a></p>
  <p><strong>How do I trigger the event of the <code>fileList</code> when the only listener I can see is 'Invalid' in Chrome Development tool?</strong></p>
  <p><a href="https://i.stack.imgur.com/LPcKL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LPcKL.png" alt="enter image description here" /></a></p>
  <p><em>This is the button I'm working with</em>:</p>
  <pre><code>  `&lt;input type=&quot;file&quot; multiple=&quot;&quot; accept=&quot;image/gif,image/jpg,image/jpeg,image/pjpeg,image/png,image/x-png&quot; aria-label=&quot;Add photos or drag and drop&quot; data-testid=&quot;media-upload&quot; name=&quot;images&quot; class=&quot;thisClassChangesAllTheTime&quot; autocomplete=&quot;off&quot; id=&quot;inputfile&quot;&gt;`
  </code></pre>
  <p>Unfortunately if I try something like:
  <code>$('#inputfile').click();</code>
  It will just bring up the prompt to find a new image and then my fileList images are lost once I hit add. I want to bypass the find image prompt and use the image in the fileList.</p>
  <p>I have also tried <code>$('#inputfile').change();</code> to no prevail, which I assume is because it's not a function. I've also tried the Javascript alternatives to jQuery (I know jQuery is old)</p>
  <p>How would I find what event or handler to trigger and then how would I trigger that via code?</p>
  <p>I'm happy with a Javascript or jQuery answer/guidance.</p>
  <p>The site I'm trying to use this on, uses react, so I'm not sure if that effects the answer to the solution in what we target with js?</p>
  <p><a href="https://i.stack.imgur.com/EyH8t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EyH8t.png" alt="enter image description here" /></a></p>
  <p>Any guidance/help to solve my mind numbing issue, would be warmly welcomed. </p>