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

this.contentTypes.find is not a function #508

Open
andzejsw opened this issue Jan 6, 2020 · 1 comment
Open

this.contentTypes.find is not a function #508

andzejsw opened this issue Jan 6, 2020 · 1 comment

Comments

@andzejsw
Copy link

andzejsw commented Jan 6, 2020

I get this error, when i am setting allowed file types and then select file from file browser:

ERROR TypeError: this.contentTypes.find is not a function
    at NgUploaderService.push../node_modules/ngx-uploader/fesm5/ngx-uploader.js.NgUploaderService.allContentTypesAllowed (ngx-uploader.js:365)
    at NgUploaderService.push../node_modules/ngx-uploader/fesm5/ngx-uploader.js.NgUploaderService.isContentTypeAllowed (ngx-uploader.js:376)
    at ngx-uploader.js:73
    at FileList.reduce (<anonymous>)
    at NgUploaderService.push../node_modules/ngx-uploader/fesm5/ngx-uploader.js.NgUploaderService.handleFiles (ngx-uploader.js:70)
    at HTMLInputElement.NgFileSelectDirective.fileListener (ngx-uploader.js:568)
@andzejsw
Copy link
Author

On Angular 9 this issue dissapeared.

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