未使用的NOT_FOUND_ERR:NOT_FOUND_ERR:使用plupload时Ember中的DOMException 8

时间:2016-02-01 10:58:08

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

在ember中使用plupload组件时,它在控制台上似乎是一个错误,并且在插件上也没有工作

  

实例化FileInput ...

     

moxie.js:3027未捕获NOT_FOUND_ERR:NOT_FOUND_ERR:DOMException 8

我提到了this link

提前谢谢

1 个答案:

答案 0 :(得分:0)

需要具有 id “上传图片” 的元素才能匹配上传者的 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}}