# Upload remapping is a bit too enthousiastic

**URL:** <https://meta.discourse.org/t/upload-remapping-is-a-bit-too-enthousiastic/118889>\
**Category:** Bug\
**Created:** [28.Май.2019 15:44:56 UTC](https://meta.discourse.org/t/upload-remapping-is-a-bit-too-enthousiastic/118889 "2019-05-28T15:44:56Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [29.Май.2019 16:15:42 UTC](https://meta.discourse.org/t/upload-remapping-is-a-bit-too-enthousiastic/118889/4 "2019-05-29T16:15:42Z")

</div>

> [@RGJ](#):
>
> DbHelper.remap(“uploads/#{previous\_db\_name}”, “uploads/#{current\_db\_name}”)

Would changing this to include the trailing slash have helped?

```plaintext
DbHelper.remap("uploads/#{previous_db_name}/", "uploads/#{current_db_name}/")

```

That feels more correct in any case.

---

_[View the full topic](https://meta.discourse.org/t/upload-remapping-is-a-bit-too-enthousiastic/118889)._
