Topic: swfupload $_FILE

hi,

i've saperated my codes into 2 part. the client side and the server side.

here is my client side
[code=php]
    if (isset($_POST['PHPSESSID'])) {
        session_id($_POST['PHPSESSID']);
    }
    session_start();

    ini_set("display_errors",1);
    error_reporting(E_ALL ^E_NOTICE);
   
   
    require_once ("ajaxSwfupload/xajax_core/xajax.inc.php");
    $xajax = new xajax("controllers/ajax.upload.php");
    require_once 'ajaxSwfupload/xajax_plugins/request/swfupload/swfupload.inc.php';
    //$xajax->configure("javascript URI","ajaxSwfupload/");
   
    $xajax->setFlag('debug',true);
   
    $xajax->registerFunction("uploader");
    $xajax->registerFunction("transform");
    $xajax->registerFunction("destroyform");
   
    $xajax->autoCompressJavaScript("ajaxSwfupload/xajax_plugins/request/swfupload/swfupload.js",true);
    $xajax->autoCompressJavaScript("ajaxSwfupload/xajax_plugins/request/swfupload/swfupload.xajax.js",true);
    $xajax->autoCompressJavaScript("ajaxSwfupload/xajax_plugins/request/swfupload/swfupload.queue.js",true);
[/code]

and here is my server side:
[code=php]
    if (isset($_POST['PHPSESSID'])) {
        session_id($_POST['PHPSESSID']);
    }
    session_start();
   
ini_set("display_errors",1);
    error_reporting(E_ALL ^E_NOTICE);
   
    $core = '../ajaxSwfupload/xajax_core';
    require_once $core . '/xajax.inc.php';
   
    $xajax = new xajax('ajax.upload.php');
    require_once '../ajaxSwfupload/xajax_plugins/request/swfupload/swfupload.inc.php';
   
    $xajax->register(XAJAX_FUNCTION,"uploader",array("mode" => "'SWFupload'","SWFform" => "'upload_form'"));
    $xajax->register(XAJAX_FUNCTION,"transform");
    $xajax->register(XAJAX_FUNCTION,"destroyform");
   
    $xajax->autoCompressJavaScript("../ajaxSwfupload/xajax_plugins/request/swfupload/swfupload.js",true);
    $xajax->autoCompressJavaScript("../ajaxSwfupload/xajax_plugins/request/swfupload/swfupload.xajax.js",true);
    $xajax->autoCompressJavaScript("../ajaxSwfupload/xajax_plugins/request/swfupload/swfupload.queue.js",true);
   
    $xajax->processRequest();
   
    function transform() {
   
        $objResponse = new xajaxResponse();
        $objResponse->clsSwfUpload->transForm('upload_form'
            ,array(
                "file_types" => "*.txt;"
                ,"file_types_description" => "Image Files or mp3"
                ,"file_size_limit" => "5 MB"
                ,"upload_complete_handler" => "function () {
                                                                                }"
                ,"post_params" => array(
                    "PHPSESSID" => session_id()
                )                                                                               
           
            )
            , true
            );
   
   
        return $objResponse;
    }
   
    function destroyform() {
   
        $objResponse = new xajaxResponse();
        $objResponse->clsSwfUpload->destroyForm('upload_form');
   
        return $objResponse;
    }

    function uploader($aFormValues) {
        $objResponse = new xajaxResponse();
        $html="";
$objResponse->alert(print_r($aFormValues,true));
$objResponse->alert(print_r($_FILES,true));
        foreach ($_FILES as $key => $file) {
            $html .="
                <div style=\"border:1px solid #f0f0f0;background:#fff;padding:4px;margin-bottom:4px;\">
                    <div style=\"float:left;width:100px;\">Filename:</div>
                    <div style=\"float:left;\">".$_FILES[$key]['name']."</div>
                    <br style=\"clear:both;\" />
                    <div style=\"float:left;width:100px;\">Size:</div>
                    <div style=\"float:left;\">".$_FILES[$key]['size']."</div>
                    <br style=\"clear:both;\" />
                </div>
                "    ;
        }
        if ("" == $html) $html="empty queue";
        $objResponse->append("results","innerHTML",$html);
   
        return $objResponse;
    }
[/code]

i can retrieve $aFormValues data but  unfortunately, $_FILES is empty. anybody can help me with this? thanks