# Discourse Deleting Uploads moved from Local to S3

**URL:** <https://meta.discourse.org/t/discourse-deleting-uploads-moved-from-local-to-s3/89766>\
**Category:** Support\
**Created:** [June 13, 2018, 12:10pm UTC](https://meta.discourse.org/t/discourse-deleting-uploads-moved-from-local-to-s3/89766 "2018-06-13T12:10:08Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Jake\_Shadle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jake_shadle/32/88328_2.png) [@Jake\_Shadle](https://meta.discourse.org/u/Jake_Shadle)\
**Post date:** [June 13, 2018, 12:10pm UTC](https://meta.discourse.org/t/discourse-deleting-uploads-moved-from-local-to-s3/89766/1 "2018-06-13T12:10:08Z")

</div>

So we recently moved our on-premise instance of Discourse into the cloud, and as part of the migration we changed from using locally hosted uploads to s3 storage. After running the `migrate_to_s3` task and rebaking, images still worked, but some videos were messed up, but we were able to just reupload them and got things up and running as it had been previously, and new videos could be uploaded and played from within Discourse, all was good.

Except, now all of the videos are broken again. Looking at the S3 bucket, we can see that videos are indeed no longer in their normal location eg. `original/2X/0/<hash>.mp4` and have been moved to `tombstone/original/2X/0/<hash>.mp4` for some reason.

As far as I can tell from the Discourse settings, deletion of uploads should presumably only occur if you enable the “clean up uploads” setting and the post(s) that reference the upload are all deleted, orphaning the upload. But as far as I can tell this should not apply, for example, here is a 5 day old post that worked when it was created, but stopped working after no edits or other action were done that would cause the video to disappear.

 ![image](https://global.discourse-cdn.com/meta/original/3X/a/6/a6001e789e35b666a03750f88ecaf6d359f1a680.png)

Any help on this would be appreciated (hopefully it’s just flicking off a setting I haven’t found?)

---

_[View the full topic](https://meta.discourse.org/t/discourse-deleting-uploads-moved-from-local-to-s3/89766)._
