Skip to content

Upgrade to 1.x.x - TypeError: "Uploader" must be an instance of FileUploader #183

Closed
@davidwparker

Description

@davidwparker

When migrating, following the guide: https://github.com/nervgh/angular-file-upload/wiki/Migrate-from-0.x.x-to-1.x.x

I now get the following error whenever I use any of the directives:

TypeError: "Uploader" must be an instance of FileUploader
    at link (http://localhost:3000/assets/angular/angular-file-upload.js?body=1:1231:27)
    at nodeLinkFn (http://localhost:3000/assets/angular/angular.js?body=1:6228:13)
    at compositeLinkFn (http://localhost:3000/assets/angular/angular.js?body=1:5638:15)
    at compositeLinkFn (http://localhost:3000/assets/angular/angular.js?body=1:5641:13)
    at nodeLinkFn (http://localhost:3000/assets/angular/angular.js?body=1:6222:24)
    at http://localhost:3000/assets/angular/angular.js?body=1:6422:13
    at http://localhost:3000/assets/angular/angular.js?body=1:7574:11
    at wrappedCallback (http://localhost:3000/assets/angular/angular.js?body=1:10950:81)
    at wrappedCallback (http://localhost:3000/assets/angular/angular.js?body=1:10950:81)
    at http://localhost:3000/assets/angular/angular.js?body=1:11036:26

The element:

<input nv-file-select uploader="{{uploader}}" type="file" multiple="" class="hidden-file" id="attachment{{uploader._timestamp}}">

Any thoughts on what I should be looking at?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions