OK, So I use a form and target an iframe, now how do I detect when file is done uploding and update page with uploaded image?
This is a sample from the file wp-includes\js\swfupload\handlers.js, from WordPress 2.6.1 http://wordpress.org/download/ It's used when you upload a file, to display a progress bar. function uploadProgress(fileObj, bytesDone, bytesTotal) { // Lengthen the progress bar jQuery('#media-item-' + fileObj.id + ' .bar').width(620*bytesDone/bytesTotal); if ( bytesDone == bytesTotal ) jQuery('#media-item-' + fileObj.id + ' .bar').html('<strong class="crunching">' + swfuploadL10n.crunching + '</strong>'); } Code (markup):