I need to upload images to images path in my local site.. how can me write path ?
error: $model->image->saveAs('/app/images');
images path C:\xampp\htdocs\worldi\app\images
$images_path = realpath(Yii::app()->basePath . '/../images');
$model->image->saveAs($images_path . '/' . $model->image);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With