Topic: swfupload with rails and attachment_fu


I am using swfupload with attachment_fu to upload images. swfupload is working nice to upload images. However, I need to modify swfupload to fit with my need. How I can modify swfupload to do like this,
1. User uploads an image
2. Image is save and display thumbnail on the form (not saving form yet, just save the image)
3. After image is saved, hidden value (such as, key or ID) is store on the form
4. User save a form