parent.uploadFailed();'; die(); } // must move the file to a permanent location if (move_uploaded_file($_FILES['file']['tmp_name'], $target)) { echo ''; } else { // there was a problem moving the file echo ''; } } // there was a problem uploading the file else { echo ''; } ?>