angular-file-upload: Upgrade to 1.x.x - TypeError: "Uploader" must be an instance of FileUploader
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?
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 18 (9 by maintainers)
For example:
@paresh-icoder
See: https://github.com/nervgh/angular-file-upload/issues/574
You need to change references from “uploader” to “vm.uploader” in html file.
angular fileuploader is not working plz help me var uploader = vm.uploader = new FileUploader({ url: ‘server/upload.php’ });