private function onFileUploaded($filePath, $userdata, $tipoFoto)
 {
     /*Yii::app()->user->setFlash('success',".".$filePath."  -  ".$userdata.".");	*/
     // will invoke method in a class defined when you setup the widget:
     // using: receptorClassName and methodName attributes.
     $this->_invokeMethod($filePath, $userdata, $tipoFoto);
     //Darle vuelta
     $elarchivo = substr($filePath, strpos($filePath, '/') + 1, strlen($filePath));
     $elarchivo = substr($elarchivo, strpos($elarchivo, '/'), strlen($elarchivo));
     $elarchivo = str_replace(' ', '', $elarchivo);
     if ($tipoFoto == "T") {
         $losTemporales = new TempImagenes();
         $losTemporales->archivo = $elarchivo;
         if ($losTemporales->save()) {
             # code...
         }
     }
     if ($tipoFoto == "B") {
         $losTemporales = new TempImagenes();
         $losTemporales->archivo = $elarchivo;
         if ($losTemporales->save()) {
             # code...
         }
     }
     if ($tipoFoto == "TP") {
         $losTemporales = new TempExamenes();
         $losTemporales->archivo = $elarchivo;
         if ($losTemporales->save()) {
             # code...
         }
     }
 }