original_string: public function saveUploadedFiles()
      {
          try
          {
              if(($xUploadPlugin = $this->getPluginManager()->getRequestPlugin(self::FILE_UPLOAD)) == null)
              {
                  throw new Exception($this->trans('errors.upload.plugin'));
              }
              elseif(!$xUploadPlugin->canProcessRequest())
              {
                  throw new Exception($this->trans('errors.upload.request'));
              }
              // Save uploaded files
              $sKey = $xUploadPlugin->saveUploadedFiles();
              $sResponse = '{"code": "success", "upl": "' . $sKey . '"}';
              $return = true;
          }
          catch(Exception $e)
          {
              $sResponse = '{"code": "error", "msg": "' . addslashes($e->getMessage()) . '"}';
              $return = false;
          }
          // Send the response back to the browser
          echo '<script>var res = ', $sResponse, '; </script>';
          if(($this->getOption('core.process.exit')))
          {
              exit();
          }
          return $return;
      }
code: public function saveUploadedFiles()
      {
          try
          {
              if(($xUploadPlugin = $this->getPluginManager()->getRequestPlugin(self::FILE_UPLOAD)) == null)
              {
                  throw new Exception($this->trans('errors.upload.plugin'));
              }
              elseif(!$xUploadPlugin->canProcessRequest())
              {
                  throw new Exception($this->trans('errors.upload.request'));
              }
              // Save uploaded files
              $sKey = $xUploadPlugin->saveUploadedFiles();
              $sResponse = '{"code": "success", "upl": "' . $sKey . '"}';
              $return = true;
          }
          catch(Exception $e)
          {
              $sResponse = '{"code": "error", "msg": "' . addslashes($e->getMessage()) . '"}';
              $return = false;
          }
          // Send the response back to the browser
          echo '<script>var res = ', $sResponse, '; </script>';
          if(($this->getOption('core.process.exit')))
          {
              exit();
          }
          return $return;
      }
code_tokens: public function saveUploadedFiles ( ) { try { if ( ( $ xUploadPlugin = $ this -> getPluginManager ( ) -> getRequestPlugin ( self :: FILE_UPLOAD ) ) == null ) { throw new Exception ( $ this -> trans ( 'errors.upload.plugin' ) ) ; } elseif ( ! $ xUploadPlugin -> canProcessRequest ( ) ) { throw new Exception ( $ this -> trans ( 'errors.upload.request' ) ) ; } // Save uploaded files $ sKey = $ xUploadPlugin -> saveUploadedFiles ( ) ; $ sResponse = '{"code": "success", "upl": "' . $ sKey . '"}' ; $ return = true ; } catch ( Exception $ e ) { $ sResponse = '{"code": "error", "msg": "' . addslashes ( $ e -> getMessage ( ) ) . '"}' ; $ return = false ; } // Send the response back to the browser echo '<script>var res = ' , $ sResponse , '; </script>' ; if ( ( $ this -> getOption ( 'core.process.exit' ) ) ) { exit ( ) ; } return $ return ; }
docstring: Check uploaded files validity and move them to the user dir
  
  @return boolean
docstring_tokens: Check uploaded files validity and move them to the user dir