我是角度2的新手。我正在使用ng2-uploder上传文件。文件正在上传成功,但它在控制台中显示我的错误:
ERROR TypeError: _this.files.filter is not a function at ng-file-select.ts:41 at SafeSubscriber.schedulerFn [as _next] (core.es5.js:3840) at SafeSubscriber.__tryOrUnsub (Subscriber.js:236) at SafeSubscriber.next (Subscriber.js:185) at Subscriber._next (Subscriber.js:125) at Subscriber.next (Subscriber.js:89) at EventEmitter.Subject.next (Subject.js:55) at EventEmitter.emit (core.es5.js:3814) at XMLHttpRequest.xhr.onreadystatechange (ng2-uploader.ts:103) at XMLHttpRequest.wrapFn [as __zone_symbol___onreadystatechange] (zone.js:1199) at ZoneDelegate.webpackJsonp.1218.ZoneDelegate.invokeTask (zone.js:398) at Object.onInvokeTask (core.es5.js:4116) at ZoneDelegate.webpackJsonp.1218.ZoneDelegate.invokeTask (zone.js:397) at Zone.webpackJsonp.1218.Zone.runTask (zone.js:165) at XMLHttpRequest.ZoneTask.invoke (zone.js:460)