How save file to the server not in database?
How save file to the server not in database?
The same way as in vanilla php.
$_FILES, move_uploaded_file and so on.
Also you can do it this way:
http://www.yiiframework.com/wiki/2/how-to-upload-a-file-using-a-model/