Error: src/app/shared/fileupload/fileupload.component.html:2:87 - error NG8002: Can't bind to 'multiple' since it isn't a known prop erty of 'p-fileUpload'.
- If 'p-fileUpload' is an Angular component and it has 'multiple' input, then verify that it is part of this module.
- If 'p-fileUpload' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress t his message.
- To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.
HTML: <p-fileUpload name="myfile[]" url="https://www.primefaces.org/cdn/api/upload.php" [multiple]="true" accept="image/*" maxFileSi ze="1000000">
app-module.ts
imported FileuploadModule
You probably did not correctly import
FileUploadModule.Check this
AppModuleexample:Also, if you have multiple NgModules, make sure to import
FileUploadModulein the NgModule that declares your component. So your component should be listed in thedeclarationsarray of the same NgModule.Your HTML fragment has a few issues as well:
maxFileSizehas an extra spacemaxFileSizehas the type string instead of numberp-fileUploadtag is not closedHere is a corrected version:
Since Angular 16, components can use self-closing tags: