upload file and display thumbnail immediately on form

Does anyone know how to upload a photo and display the thumbnail in the form before submitting with Paperclip?

Clientside resizing is available in SWFUpload. Have fun (you’ll have to write the javascript yourself though)!

http://demo.swfupload.org/v250beta3/resizedemo/index.php

Best regards

Peter De Berdt