JSFiddle - React, Tailwind, and code Playground

HTML

<div class="filefield-upload clear-block"><input type="file" size="22" id="edit-field-image-cache-0-upload" class="form-file" name="files[field_image_cache_0]">
<input type="submit" class="form-submit ahah-processed" value="Upload" id="edit-field-image-cache-0-filefield-upload" name="op">
</div>

JavaScript

$('.form-file').change( function() {    
   $(this).next('.ahah-processed').click();
});    

$('.ahah-processed').click( function() {    
   alert('ahah-processed');
});