I have a form with upload
<form action="../upload" method="post" id="upload_form" enctype="multipart/form-data" target="upload_frame" >
<input name="file" type="file" />
</form>
and it's submit using javascript form another form submit button
function upload(){
var uploadForm = document.getElementById('upload_form');
uploadForm.submit();
console.log('this should be called when the form finishes upload and respone is committed');
}
please tell if the example is not clear enough