【问题标题】:Drupal import audio failedDrupal 导入音频失败
【发布时间】:2013-03-28 15:24:03
【问题描述】:

我使用 Media Feeds 导入 900 个音频文件。

配置已正确设置,但在导入步骤中出现消息错误:

“未能获取 /sites/all/files/audios/categorie1/xxxx.mp3 的文件对象”

以 XML 为例,音频文件路径为 /sites/all/files/audios/categorie1/xxxx.mp3

我不明白为什么它失败了......

谁能解释一下? & 告诉我如何导入所有音频

【问题讨论】:

    标签: drupal drupal-7 drupal-feeds


    【解决方案1】:

    在 drupal7 中下载“feedtamper”模块。

    转到 admin-structure > feedimporters > tamper,您可以看到 tamper 中的字段。

    点击“add plugin”然后点击“The plugin to add”为所有字段选择“Rewrite”。

    在“public://”+Available Replacement Patterns中可以看到“configuration rewrite”,它避免了“public ://"。

    然后转到 Admin-structure > Content type > your content type > manage fields 以点击“哪个字段用于存储 mp3”。

    允许的文件扩展名”检查是否输入了“mp3”。

    最大上传大小”输入“50 MB

    点击“保存设置

    必须清除缓存。

    【讨论】:

      【解决方案2】:

      我从未使用过这个模块,但我猜它应该寻找文件 sites/all/files/audios/categorie1/xxxx.mp3 而不是 /sites/all/files/audios /categorie1/xxxx.mp3(开头没有/)。

      【讨论】:

      • 我尝试使用 public:// 或绝对 URL 更改 XML 中的文件 url 但它仍然不起作用
      • 我更改设置。我使用音频(media_internet)并在 xml 中更改文件的路径以使用 url 进行设置。现在我又收到一条黄色消息:无法添加文件etc...
      • 您好,我尝试分两步“剪切”我的批量上传。 1、我使用媒体导入来导入音频文件。 (它将上传具有正确设置的所有音频)然后我使用了提要 xml 并在我的 xml 中我将 url 文件更改为:public://test.mp3 所以我的音频已经在 drupal 但我仍然有一条绿色消息:失败获取 public://20110313_tariq_aboul_wafa_tafsir_youssef.mp3 的文件对象。已创建 1 个新用户。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-10-27
      • 1970-01-01
      • 1970-01-01
      • 2017-12-03
      • 2011-11-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多