# העברת פורום phpBB3 ל-Discourse

**URL:** https://meta.discourse.org/t/migrate-a-phpbb3-forum-to-discourse/30810
**Category:** Migrating to Discourse
**Tags:** how-to
**Created:** [5 ביולי,‏ 2015,‏ 10:02pm UTC](https://meta.discourse.org/t/migrate-a-phpbb3-forum-to-discourse/30810 "2015-07-05T22:02:57Z")
**Posts on this page:** 1
**Showing post:** 796

<div class="post-metadata">

### Author: ![jahan\_gagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jahan_gagan/32/501948_2.png) [@jahan\_gagan](https://meta.discourse.org/u/jahan_gagan)
#### Post date: [2 במרץ,‏ 2025,‏ 11:18pm UTC](https://meta.discourse.org/t/migrate-a-phpbb3-forum-to-discourse/30810/796 "2025-03-02T23:18:13Z")

</div>

In your second trial, Discourse is skipping the uploads because they already exist in the `uploads` table. Discourse avoids overwriting existing uploads unless explicitly instructed.

You can try adding the below code snippet in `attachment_importer.rb` ([discourse/script/import\_scripts/phpbb3/importers/attachment\_importer.rb at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/main/script/import_scripts/phpbb3/importers/attachment_importer.rb#L25)) before calling `@uploader.create_upload` will ensure that any existing upload with the same filename is **deleted first** , forcing Discourse to re-upload it.

```plaintext
existing_upload = Upload.find_by(original_filename: filename)
if existing_upload
  existing_upload.destroy
  puts "Deleted existing upload: #{filename}"
end

upload = @uploader.create_upload(user_id, path, filename)

```

---

_[View the full topic](https://meta.discourse.org/t/migrate-a-phpbb3-forum-to-discourse/30810)._
