AdminBundle/Service/UploadHandler.php
public function get($printResponse = true)
    {
        
        if ($printResponse && isset($_GET['download'])) {
            
            return $this->download();
        }
        
        $fileName = $this->get_file_name_param();
        
        
        if ($fileName) {
            $response = array(
                substr($this->options['param_name'], 0, -1) => $this->get_file_object($fileName)
            );
        } else {        
            $response = array(
                $this->options['param_name'] => $this->get_file_objects()
            );
        }

        return $this->generate_response($response, $printResponse);
    }
public function get($printResponse = true)
    {
        
        if ($printResponse && isset($_GET['download'])) {
            
            return $this->download();
        }
        
        $fileName = $this->get_file_name_param();
        
        
        if ($fileName) {
            $response = array(
                substr($this->options['param_name'], 0, -1) => $this->get_file_object($fileName)
            );
        } else {        
            $response = array(
                $this->options['param_name'] => $this->get_file_objects()
            );
        }

        return $this->generate_response($response, $printResponse);
    }
public function get ( $ printResponse = true ) { if ( $ printResponse && isset ( $ _GET [ 'download' ] ) ) { return $ this -> download ( ) ; } $ fileName = $ this -> get_file_name_param ( ) ; if ( $ fileName ) { $ response = array ( substr ( $ this -> options [ 'param_name' ] , 0 , - 1 ) => $ this -> get_file_object ( $ fileName ) ) ; } else { $ response = array ( $ this -> options [ 'param_name' ] => $ this -> get_file_objects ( ) ) ; } return $ this -> generate_response ( $ response , $ printResponse ) ; }
Get method

@param bool $printResponse

@return array
Get method