API
- 1 ответ
- 0 вопросов
0
Вклад в тег
$link = $upl_url["response"]["upload_url"];
$lala = dirname(__FILE__)."/112.jpg";
$cfile = curl_file_create($lala,'image/jpeg','test_name.jpg');
$curl=curl_init();
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => $link,
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => array("photo" => $cfile)
));