# How to avoid uploading attachments multiple times in a migration

**URL:** <https://meta.discourse.org/t/how-to-avoid-uploading-attachments-multiple-times-in-a-migration/70613>\
**Category:** Development\
**Created:** [22. September 2017 um 22:35 UTC](https://meta.discourse.org/t/how-to-avoid-uploading-attachments-multiple-times-in-a-migration/70613 "2017-09-22T22:35:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)\
**Post date:** [23. September 2017 um 07:25 UTC](https://meta.discourse.org/t/how-to-avoid-uploading-attachments-multiple-times-in-a-migration/70613/2 "2017-09-23T07:25:20Z")

</div>

Why don’t you just re-upload the files and let Discourse figure this out? Since storage is based on an SHA checksum, this won’t duplicate the files 🙂  
Is this about making subsequent runs faster?

---

_[View the full topic](https://meta.discourse.org/t/how-to-avoid-uploading-attachments-multiple-times-in-a-migration/70613)._
