Skip to content

accept restriction file type not working #22

@bhanukumar04

Description

@bhanukumar04

with out adding accept restriction, control is going to filesSelect() method in the below code and am able to the uploaded file. if I need to add restriction for file type its not working .

component.html file:
<span ngfSelect multiple="1" [(file)]="file" (fileChange)="filesSelect(file)" [accept] = "accept" >Browse

component.ts file:

accept = '.pdf, .jpg, .tif, .gif, .bmp, .jpeg'

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions