# Cannot view attachments after import

**URL:** <https://meta.discourse.org/t/cannot-view-attachments-after-import/103094>\
**Category:** Support\
**Created:** [29.Ноябрь.2018 17:37:05 UTC](https://meta.discourse.org/t/cannot-view-attachments-after-import/103094 "2018-11-29T17:37:05Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mattbr](https://avatars.discourse-cdn.com/v4/letter/m/9de0a6/32.png) [@mattbr](https://meta.discourse.org/u/mattbr)\
**Post date:** [29.Ноябрь.2018 17:37:05 UTC](https://meta.discourse.org/t/cannot-view-attachments-after-import/103094/1 "2018-11-29T17:37:05Z")

</div>

Hi,

I have followed this guide to import from phpBB: [Migrate a phpBB3 forum to Discourse](https://meta.discourse.org/t/importing-from-phpbb3/30810)

I am now using S3 to store user attachments, and all attachments after an import work. The posts href looks like: `https://{MY_S3_BUCKET}.s3.amazonaws.com/original/2X/8/{HASH}.zip`

However all imported attachments href looks like: `https://{MY_WEBSITE}/uploads/default/original/2X/6/{HASH}.zip`

When I SSH onto the machine I can see this attachment lives:  
`/var/discourse/shared/standalone/uploads/default/original/2X/6/{HASH}.zip` but when I click on the link to download the file from my forums instance it results in a 404 page.

I have checked the permissions and even ran `chmod 777 {HASH}.zip` however it still keeps 404ing when trying to download.

I can resolve this by manually modifying the `href` in these posts to refer to the S3 bucket, however it will lead to a page that says:

```plaintext
We were unable to verify that the link you selected was actually posted to the forum. If you wish to proceed anyway, select the link below.

```

Any ideas on how to resolve this and allow all import attachments to work? They exist both in S3 and on the local machine as well.

Thanks,

- Matt

---

_[View the full topic](https://meta.discourse.org/t/cannot-view-attachments-after-import/103094)._
