Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Can't bind to 'uploader' #3901


User avatar
0
alexanderpilhar created

I want to create an upload-form using ng2-file-upload but fail, getting the following error:

ERROR Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'uploader' since it isn't a known property of 'input'. ("<input type="file" ng2FileSelect [ERROR ->][uploader]="uploader"/>")

Actually, this seems to be a common problem a lot of people out there encounter when using ng2-file-upload. Most of them solve it by importing FileUploadModule into their own module. So, I tried to do the same in my main.module.ts - without any success. I still get the same error message.

Is there anything else I might be missing?


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @alexanderpilhar,

    Can you try to add FileUploadModule to your admin module ?

  • User Avatar
    0
    alexanderpilhar created

    Hi @ismcagdas,

    FileUploadModule has already been imported to admin.module.ts and is used for change-profile-picture-modal.component as well as tenant-settings.component. I basically try to do something very similar to this for main.module.ts but just can't get it to work properly.

  • User Avatar
    0
    alexanderpilhar created

    Oh, I just started the project the first time today and now everything works as expected. So it seems there was some sort of caching problem - though I did make sure to clear the cache a couple of times yesterday... Well, next time I will restart the whole browser just to be sure!

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks for sharing the result @alexanderpilhar.