File Upload CURL
Last Update : 2020.01.30
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://file.pictor.kr/upload');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
'file' => new CURLFile({Your File Path}, mime_content_type({Your File Path}))
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
File Upload CURL Response
Last Update : 2020.01.30
{
"status": true,
"message": "https://cdn.pictor.kr/{ID}.{Extension}",
"data": []
}