# 从 Kunena 迁移附件

**URL:** https://meta.discourse.org/t/migrating-attachments-from-kunena/295088
**Category:** Migration
**Tags:** kunena
**Created:** [2024年二月12日 16:07 UTC](https://meta.discourse.org/t/migrating-attachments-from-kunena/295088 "2024-02-12T16:07:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![maaatt](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@maaatt](https://meta.discourse.org/u/maaatt)
#### Post date: [2024年二月12日 16:07 UTC](https://meta.discourse.org/t/migrating-attachments-from-kunena/295088/1 "2024-02-12T16:07:41Z")

</div>

您好，  
我成功地将 Kunena 论坛迁移到了 Discourse，但在迁移帖子附件/图片时遇到了困难。  
我拥有包含原始文件的整个文件夹，有人成功迁移了附件吗？  
感谢您的帮助！

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2024年二月12日 22:03 UTC](https://meta.discourse.org/t/migrating-attachments-from-kunena/295088/2 "2024-02-12T22:03:20Z")

</div>

该[脚本](https://github.com/discourse/discourse/blame/main/script/import_scripts/kunena.rb)没有提到附件。您需要弄清楚附件在数据库和/或帖子本身中的位置，以便编写代码来获取这些图像，将它们添加到 Discourse 中，并相应地更新帖子。

[vbulletin](https://github.com/discourse/discourse/blob/main/script/import_scripts/vbulletin.rb) 脚本可能是一个有用的示例。

如果您不是程序员，您可能需要在 #Marketplace 中提问。
