Hi Im using REST API in yii 2 \yii\web\UploadedFile::getInstance
is not getting file in my function.for debugging purpose I tried with $_FILES['asset']
its printing with values.but not getting file instance using \yii\web\UploadedFile::getInstance
$updateFile = $_FILES['asset']; //Printing values
$model->asset = \yii\web\UploadedFile::getInstance($model, 'asset'); //Not printing,its empty
What is the issues,I couldn't validate If i process the file with $_FILES
.Any help would be grateful!! Thanks in Advance
Try this: