0
I’m having a problem using a PHP lower than 5.5, I don’t have the function curl_file_create for me to use, even though I’m not able to send could help me ?
public function enviaArquivo($arquivo){
    $ch = curl_init('https://site.com.br/upload_direto?token=xxxxxxxxxxxxx');
    curl_setopt_array($ch, [    
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_POST => true,
        CURLOPT_POSTFIELDS => [          
          'File' => "@/var/www/site.com.br/sistema/php/cron/".$arquivo,
          'Token'=> 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
        ]
    ]);
    $resposta = curl_exec($ch);
    echo $resposta;
    curl_close($ch);
}
Thanks, I got !
– Vasconcelosx