I want to upload a file with a maximum size of 25MB, but it fails and the file does not enter the storage folder. Can enybody say what's wrong?
in php.ini-development and php.ini-production
post_max_size = 25M
upload_max_filesize = 25M
model
[['publikasi_cetak'],'file','skipOnEmpty'=>TRUE,'extensions'=>'rar','maxSize' => 1024*1024*25],
controller
 public function actionCreate()
{
    $model = new Publikasicetak();
      // [['publikasi_cetak'], 'string', 'max' => 255],
        if ($model->load(Yii::$app->request->post())) 
        {
            $model->tanggal_upload= date('Y-m-d H:i:s');
            $model->username=(Yii::$app->user->identity->username);
            $imageName = $model->judul_cetak;
            $publikasi_cetak = UploadedFile::getInstance($model, 'publikasi_cetak');
            $publikasi_cetak->saveAs('pub_cetak/'.$imageName.'.'.$publikasi_cetak->extension);
            $model->publikasi_cetak = $imageName.'.'.$publikasi_cetak->extension;
            if($model->save())
            {
               $lastInsertID = $model->getPrimaryKey();
               return $this->redirect(['view', 'id' => $lastInsertID]);
            }
           else
           {
               // print_r($model->getErrors()); => check whether any validation errors are there
           }
        } else 
        {
            return $this->render('create', [
                'model' => $model,
            ]);
        }
}
 
     
     
    