genemu/GenemuFormBundle — pull request #25 by Schyzophrenic (2012-01-05 13:01:42+00:00)
Title: 2.0: Allow optional additional callback actions for file upload elements

I have added this small piece of code in order to be able to add actions to the regular upload callback.

This allows the following to be defined in the twig template for instance:
genemu_file_addCallback = function ($field, $queue, $nbQueue, $response) {
alert ($response.file);
};

This is useful when you want to treat back the information in a peculiar way