The problem is that the method isFileTypeValid is implemented in a very weird way on the component.
For the details, please see my comment on this issue:
https://github.com/primefaces/primeng/issues/1694#issuecomment-294793171
Hi,
I think it should be something like that:
var acceptable = this.isWildcard(type) ? this.getTypeClass(file.type) === this.getTypeClass(type)
: file.type === type;
It's definitely broken. When I use application/pdf it marks every file as invalid (even pdf files).
This should be fixed in recent PrimeNG release, please try with it and if the issue persists drop a comment with along with a test case based on plunkr below and we'll review again.
anyone find a fix?
Most helpful comment
It's definitely broken. When I use
application/pdfit marks every file as invalid (even pdf files).