How to get the data that is coming in the PHP backend

0

I'm getting some angular data 5 and I need to save them in the bank. is arriving a file and a form, the file I was able to get, since the form I do not know how.

follow code and return in console

public function incluir($ar) {

    print_r($_FILES);
    print_r($_POST);
    $dados = $this->dados($ar);
    die();
    $cd = self::insert($this->table, $dados);
    if($cd>0){
        self::commit();
    }        
}

Array
(
    [myFile] => Array
        (
            [name] => Ipê - logo.png
            [type] => image/png
            [tmp_name] => /tmp/phpibc3tI
            [error] => 0
            [size] => 25450
        )

)
Array
(
    [form] => [object Object]
)
    
asked by anonymous 06.03.2018 / 17:34

0 answers