See my answer Choose file not working properly - #10 by damies13
You will probably need to find the function “fileUploadDialog.fileUploadCallback” and see what that does.
Is this site publicly accessable? if you can you share a link to this page, I might be able to figure it out.
Dave.