我提到了这个:https://github.com/nervgh/angular-file-upload/tree/version-3.0.0-alpha
angular.min.js:14540 TypeError: "Uploader" must be an instance of FileUploader
at link (http://localhost:8080/services/angular-file-upload.js:1874:24)
at invokeLinkFn (http://localhost:8080/lib/js/angular.min.js:10445:8)
at nodeLinkFn (http://localhost:8080/lib/js/angular.min.js:9733:9)
at compositeLinkFn (http://localhost:8080/lib/js/angular.min.js:8712:10)
at compositeLinkFn (http://localhost:8080/lib/js/angular.min.js:8717:10)
at compositeLinkFn (http://localhost:8080/lib/js/angular.min.js:8717:10)
at compositeLinkFn (http://localhost:8080/lib/js/angular.min.js:8717:10)
at compositeLinkFn (http://localhost:8080/lib/js/angular.min.js:8717:10)
at publicLinkFn (http://localhost:8080/lib/js/angular.min.js:8567:9)
at link (http://localhost:8080/lib/js/angular-route.js:1053:5) <input type="file" nv-file-select="" uploader="uploader" multiple="">
最佳答案
试试这个
<element ng-if="uploader">
<input type="file" nv-file-select uploader="uploader" multiple />
</element>
我在 angular-file-upload v2.3.4 上测试过并且工作正常
关于angularjs - "Uploader"必须是 FileUploader 的实例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38303925/