4np/grails-uploadr — pull request #10 by deigote (2013-05-02 07:00:43+00:00)
Title: Response passed to the onSuccess callback

When using custom controllers, the whole response might be useful in the onSuccess callback (probably the same apply to the rest of them, but I'm applying changes as I need them to make sure I don't break the code).

In my case, for example, I'm storing the images in the database, so I need the image database ID to include it as a hidden field in the creation form. To do that, I included the ID in the response and added it to the form in the onSuccess callback.