# Moving Discourse to subdirectory caused all uploads to break

**URL:** <https://meta.discourse.org/t/moving-discourse-to-subdirectory-caused-all-uploads-to-break/32569>\
**Category:** Product Support\
**Created:** [2015 年 8 月 27 日午前 1:32 UTC](https://meta.discourse.org/t/moving-discourse-to-subdirectory-caused-all-uploads-to-break/32569 "2015-08-27T01:32:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![staticinvocation](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/staticinvocation/32/54469_2.png) [@staticinvocation](https://meta.discourse.org/u/staticinvocation)\
**Post date:** [2015 年 8 月 27 日午前 2:16 UTC](https://meta.discourse.org/t/moving-discourse-to-subdirectory-caused-all-uploads-to-break/32569/2 "2015-08-27T02:16:39Z")

</div>

So poking around in the rails production log, I found this when uploading a file:

```
Started GET "/forum/uploads.json?client_id=xxx&authenticity_token=xxx" for xxx at 2015-08-27 02:15:10 +0000
ActionController::RoutingError (No route matches [GET] "/uploads.json")
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.10/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
Processing by ExceptionsController#not_found as JSON
  Parameters: {"client_id"=>"xxx", "authenticity_token"=>"xxx"}
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.3ms)

```

---

_[View the full topic](https://meta.discourse.org/t/moving-discourse-to-subdirectory-caused-all-uploads-to-break/32569)._
