# 如何将文件从旧的上传方案（default/XXX）迁移到新的方案（default/original/{1,2}X）？

**URL:** <https://meta.discourse.org/t/how-can-i-migrate-files-from-the-old-upload-scheme-default-xxx-to-the-new-one-default-original-1-2-x/110813>\
**Category:** Support\
**Created:** [2019年三月6日 05:43 UTC](https://meta.discourse.org/t/how-can-i-migrate-files-from-the-old-upload-scheme-default-xxx-to-the-new-one-default-original-1-2-x/110813 "2019-03-06T05:43:02Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![hosna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hosna/32/99969_2.png) [@hosna](https://meta.discourse.org/u/hosna)\
**Post date:** [2019年三月22日 05:04 UTC](https://meta.discourse.org/t/how-can-i-migrate-files-from-the-old-upload-scheme-default-xxx-to-the-new-one-default-original-1-2-x/110813/17 "2019-03-22T05:04:38Z")

</div>

> [@zogstrip](#):
>
> Only very old (\> 4 years old) Discourse instances.

but I have installed discourse last year. However when I apply your code, It returned `true` .

I have these kinds of links:

> [@S3 migrations from/to minio problems](https://meta.discourse.org/t/s3-migrations-from-to-minio-problems/97333/50):
>
> btw I think there is still something wrong with my urls as @tgxworld mentions here.

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-migrate-files-from-the-old-upload-scheme-default-xxx-to-the-new-one-default-original-1-2-x/110813)._
