cURLFile php 5.5 이상인 경우 사용하시오.
https://stackoverflow.com/questions/25934128/curl-file-uploads-not-working-anymore-after-upgrade-from-php-5-5-to-5-6
5.5,5.6 에선
curl_setopt($ch, CURLOPT_SAFE_UPLOAD, false);
를 설정해서 @filepath 로 파일 첨부 가능하지만
php 7.0 에서 사라진다.