无法检索附件 url

Impossible to retrieve the attachment url

我有一篇带有文件字段的文章

module.exports = {
extend: 'apostrophe-pieces',
name: 'article',
label: 'Article',
pluralLabel: 'Articles',
orderings: true,
addFields: [
 Other fields...
 {
    name: 'files',
    label: 'Files',
    type: 'singleton',
    widgetType: 'apostrophe-files'
  },
 ]
};

并且在 html 我使用了撇号文件小部件

  {{ apos.singleton(data.piece, 'files', 'apostrophe-files') }}

当我在 html 中显示它们时它工作正常,但是当我单击创建的链接来下载文件时,它在控制台中显示错误。

Template warning: Impossible to retrieve the attachment url since it is missing, a default icon has been set. Please fix this ASAP!

我看不出我做错了什么。

我现在不知道为什么,但好像没用,因为我前几天上传了文件,附件的url不知道为什么变了。我将文件放入垃圾箱,并添加了新文件,效果很好。