I'm using the Flash version of Uploadify in a modal dialog. If I close the modal dialog when the upload is in progress, the upload is canceled. I understand that due to Flash limitations, the upload button must always be visible for the upload to succeed, so I'm looking for a workaround to allow the upload to continue.
I tried moving the upload button to the body of the HTML file when the modal is closed, but that didn't work:
function closeModal() {
$('body').append('#fileInput'); // # fileInput contains the Uploadify button
$uploadModalOuter.fadeOut(200);
}