title: javascript file input onchange not working [ios safari only]
body: <p>The code below works everywhere except on safari mobile.
  Apparently the onchange is never triggered.</p>
  <pre><code> // create a hidden file input element
   var input  = document.createElement(&quot;input&quot;);
   input.type = &quot;file&quot;;
   
   // when the input content changes, do something
   input.onchange =
   function(event)
   {
    // upload files
   }
  
   // Trigger file browser
   input.click();
  </code></pre>
  <p>I have found similar examples however they all refer to scenarios where there is even a form of some other visible representation of the file input and they all involve form-clearing workarounds. That wouldn't work here.</p>
  <p>This code is being called upon clicking a picture, in order to upload a new one as a replacement.</p>
  <p>Any hints? Anything I'm doing wrong?</p>