Quite recent browsers allow you to call click()in an element <input type="file">during the click event for another element, such as an image. (If you did not wait for the click event, you will probably receive a warning about blocking pop-ups.)
source
share