Skip to content

Input type="file" support #17922

@JDillon522

Description

@JDillon522

Bug, feature request, or proposal:

Feature Proposal

What is the expected behavior?

Instead of creating a hidden input and a button to handle file uploads it'd be great for matInput to support type="file" inside a mat-form-field. This would make error handling much smoother and more in line the UI.
<input #fileUpload matInput mat-raised-button type="file" accept="image/png, image/jpeg, image/jpg">

What is the current behavior?

ERROR Error: Input type "file" isn't supported by matInput.

Metadata

Metadata

Assignees

Labels

P5The team acknowledges the request but does not plan to address it, it remains open for discussionarea: material/inputfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions