YII2 HTPP Client Form Data
use yii\httpclient\Client;
$client = new Client();
$response = $client->createRequest()
->setMethod('POST')
->setUrl('http://domain.com/file/upload')
->addFile('file', '/path/to/source/file.jpg')
->send();
Bahriddin Mo'minov