hello, Please tell me how to upload and save the file in database
Follow the official documentation. https://www.yiiframework.com/doc/guide/2.0/en/input-file-upload