【问题标题】:Uncaught NOT_FOUND_ERR: NOT_FOUND_ERR: DOMException 8 in Ember while using plupload未捕获的 NOT_FOUND_ERR:NOT_FOUND_ERR:使用 plupload 时 Ember 中的 DOMException 8
【发布时间】:2016-02-01 10:58:08
【问题描述】:

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

正在实例化 FileInput...

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

我推荐了this link

提前谢谢你

【问题讨论】:

  • 如果您觉得我的回答对您有帮助,您能否点赞?谢谢

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


【解决方案1】:

需要一个具有 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}}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-11-03
    • 1970-01-01
    • 2020-03-12
    • 2017-07-08
    • 2019-07-22
    • 2021-06-09
    • 2017-04-03
    • 2019-05-27
    相关资源
    最近更新 更多