javascript - 未捕获 NOT_FOUND_ERR : NOT_FOUND_ERR: DOMException 8 in Ember while using plupload

标签 javascript ember.js ember-cli plupload ember-components

使用plupload时ember 中的组件在控制台上似乎出现错误,并且 plupload 也不工作

Instantiating FileInput...

moxie.js:3027Uncaught NOT_FOUND_ERR: NOT_FOUND_ERR: DOMException 8

我提到了this link

提前谢谢

最佳答案

需要具有 id “upload-image” 的元素来匹配上传者的 for 属性

{{#pl-uploader for="upload-image" extensions="jpg jpeg" onfileadd="uploadImage" as |queue|}}
  {{#if queue.length}}
    Uploading...{{queue.progress}}%
    </span>
  {{else}}
    <a id="upload-image">Add an Image.</a>**strong text**
  {{/if}}
{{/pl-uploader}}

关于javascript - 未捕获 NOT_FOUND_ERR : NOT_FOUND_ERR: DOMException 8 in Ember while using plupload,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35128781/

相关文章:

javascript - 如何在点击时添加和删除事件类 - Angular 方式

javascript - Ember 构建输出(dist 文件夹)

ember.js - Ember-cli 处理路由 : category. 索引时出错

javascript - jQuery 自动完成到 jQuery UI 自动完成迁移(jQuery 1.2.x 到 2.x)

javascript - AJAX/jQuery 添加到表单并在同一页面上更新列表的最佳实践

javascript - jQuery Mobile 嵌套 ListView 中的奇怪行为

javascript - Ember : get data from input

javascript - Ember 数据 JSONAPIAdapter : fetch nested resources

javascript - EmberJS 嵌套资源模板不起作用

javascript - Ember 发布独特的 Assets 文件名以保证 CDN 新鲜度?