Update UploadAction.php

Here is explanation
https://github.com/yiisoft/yii2/commit/084819b84c0b9f085c2c34a2f3b081b193427c7a