Please, consider adding a single line to the end of file_ajax_upload() of file.module:

$commands[] = ajax_command_replace(NULL, $output, $settings);
$commands[] = ajax_command_invoke(NULL, 'trigger', array('upload')); // <<<<<
return array('#type' => 'ajax', '#commands' => $commands);

This would allow Ajax/JS handling of the file just uploaded.

Comments

Jooblay.net’s picture

What is the status of this ticket?