I try use CURLFile in yii2, I have php 5.5.12.
but yii return error fatal
PHP Fatal Error – yii\base\ErrorException
Class ‘frontend\models\CurlFile’ not found
my code
return new CurlFile(‘D:/photo_fb.jpg’,‘image/jpeg’);
how I can import curlfile in model class or controller
thank you for help me