设置accpt=“image/*”
例子: <input style='display:none' type="file" accept="image/*" name="icon" #iconPicture (change)="upFile($event, category)">