예제 #1
0
 public static function UploadFileHandler($callback, $Params)
 {
     self::HealFilesVars();
     self::InitUploaderHandler();
     self::$convCount = $Params['convCount'];
     self::$uploadCallbackFunc = $callback;
     self::$uploadCallbackParams = $Params;
     self::SetTmpPath($_REQUEST["PackageGuid"], $Params["pathToTmp"]);
     $uh = new UploadHandler();
     $uh->setUploadCacheDirectory($Params['pathToTmp']);
     $uh->setAllFilesUploadedCallback(array("CFlashUploader", "SaveAllUploadedFiles"));
     $uh->processRequest();
     // Kill unsecure vars from $_POST
     self::HealFilesVars(true);
 }