Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Upload Doesn't Work In Angular Material #1161

Open
FI55 opened this issue Aug 30, 2022 · 0 comments
Open

File Upload Doesn't Work In Angular Material #1161

FI55 opened this issue Aug 30, 2022 · 0 comments

Comments

@FI55
Copy link

FI55 commented Aug 30, 2022

I'm submitting a


[x] Bug / Regression
[ ] Feature Request / Proposal

I'm using


NG Dynamic Forms Version: `15.0.0`

[ ] Basic UI
[ ] Bootstrap UI  
[ ] Foundation UI
[ ] Ionic UI
[ ] Kendo UI
[x] Material  
[ ] NG Bootstrap
[ ] Prime NG

Description

In the documentation is File Upload is supported by setting the inputType to "file" but when that is done Angular Material complaints that it doesn't accept that:

ERROR Error: Input type "file" isn't supported by matInput.
    at getMatInputUnsupportedTypeError (input.mjs:25:12)
   

The solution can be found in this answer: https://stackoverflow.com/a/64598305

For Angular Material the File Upload Input has to be placed outside of the mat-form-field, like this it still includes the value into the FormGroup. If you can give me directions on where to fix it, I can fix the issue and post a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant