Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ch = curl_init($upload_url);
- $curlfile = curl_file_create(__DIR__.'1.jpg', 'multipart/form-data', 'file');
- $data = array("file"=>$curlfile);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
- $content = curl_exec($ch);
Add Comment
Please, Sign In to add comment