title: How to limit extensions to upload files? Yii2
body: <p>I have a code:</p>
  
  <pre><code>&lt;?=Html::activeHiddenInput($model, $attribute, $inputParams); ?&gt;
  &lt;?=Html::fileInput($id, null, ['id' =&gt; $id, 'style' =&gt; 'display: none']); ?&gt;
  </code></pre>
  
  <p>I need limit extensions to upload file in form, for example:</p>
  
  <pre><code>True: jpeg, png, jpg
  False: *
  </code></pre>
  
  <p>How can I do this in Yii2?</p>