Restrict File Types for File Upload

<input type="file" accept="image/png, image/jpeg" class="form-control" name="avatar">

<input type="file" accept="video/*" class="form-control" name="intro_video">