Posted on 

Source: https://code.tutsplus.com/tutorials/how-to-program-with-yii2-uploading-files–cms-23511