# Migrating vBulletin 5 database - Import attachments errors about attachment extension

**URL:** <https://meta.discourse.org/t/migrating-vbulletin-5-database-import-attachments-errors-about-attachment-extension/315235>\
**Category:** Migration\
**Tags:** vbulletin5\
**Created:** [July 6, 2024, 1:53pm UTC](https://meta.discourse.org/t/migrating-vbulletin-5-database-import-attachments-errors-about-attachment-extension/315235 "2024-07-06T13:53:34Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Mubasher112](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@Mubasher112](https://meta.discourse.org/u/Mubasher112)\
**Post date:** [July 6, 2024, 1:53pm UTC](https://meta.discourse.org/t/migrating-vbulletin-5-database-import-attachments-errors-about-attachment-extension/315235/1 "2024-07-06T13:53:34Z")

</div>

I’ve successfully imported my vBulletin 5 forum into Discourse. While the overall import script works fine, I’m encountering errors when importing attachments. The attachments are stored in my database and include the following extensions: `java`, `html`, `jpg`, `png`, `txt`, `rtf`, `zip`, `js`, and `xml`.

Upon debugging the `import_attachment` action, I discovered that only attachments with the `java` extension are being imported correctly. The script fails for attachments with other extensions.

Has anyone else in the community faced issues when importing attachments with these file extensions? Does anyone have insights on why the script might be failing with these particular file types?

Here’s a brief overview of the issue:

- The first three files in my database have the `java` extension and are imported without problems.
- The script fails when it encounters a file with the `jpg` extension.

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/4/2/e4266cbc1447d024bd3fa79e2acbb41982a34dab.png)

@pfaffman Any advice or solutions would be greatly appreciated!

---

_[View the full topic](https://meta.discourse.org/t/migrating-vbulletin-5-database-import-attachments-errors-about-attachment-extension/315235)._
