Archived from the Transloadit support forum. Originally posted on April 1, 2011; details may be outdated, see our docs for current behavior. Original thread
Hi, I am a newbie and still unclear how the demo examples work. Essentially I am looking for way to update the DOM with a resized image after I get the response from transloadit. What is the callback when the form returns from Transloadit with the json data.
The end object is similar to how the demos are done, upload a file and have the return result be displayed as a thumbnail.
I am using the jquery plugin. A simple demo example will be greatly appreciated.
do you want to add the resized image to the DOM after the page refreshes or directly when the jQuery plugin reports back that it has finished processing the image?
In case of the former, the jQuery plugin will attach all results to your form and send them to your backend along with all other form fields. There you can extract the image url from the json and display it on the result page.
I would like to add the image when the plugin reports back with the result and the DOM is updated with the thumbnail. How and where is the form submitted to my server/backup after I get the results back . ( ie. how do I specify the ‘action’ ) since the form already directs to Transloadit. A little confused about that.