gpt4 book ai didi

angularjs - "Uploader"必须是 FileUploader 的实例

转载 作者:行者123 更新时间:2023-12-02 01:23:49 24 4
gpt4 key购买 nike

我提到了这个: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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com