WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Managing my Wordpress installation with Git is great. I get to deploy fixes via command line (with Capistrano), easy rollback plan, the Theme folder is a standalone project added as a submodule -- This seems like a good way to handle Wordpress' and its plugins rapid updates.

However, Source Control is not right for handling the on-growing Uploads folder under wp-content folder.

The solution, IMHO, was to create a dedicated part on my server for media, and exclude it from the project itself. This way, I can backup media in a standalone process, deploy new version without having to clone the entire 300MB folder again and again -- in short, this seems like a good solution.

Wordpress doesn't do that, though. Not out of the box.

Possible solutions:

  • Uploads files via FTP and use the image URL in posts (doubles the posting process time)

  • Use a 3rd party image hosting (Flickr, Tumblr) -- This creates a dependency I wish to avoid. I want the media on my server, under my control.

Any other ideas? How can I achieve a standalone media folder to which I can upload files from WP dashboard?

share|improve this question
While this is an incredibly interesting question, I'm really not so sure that it is in scope, since, while in the context of WordPress, neither the question itself nor the answer is in any way specific to WordPress. – Chip Bennett Feb 10 '12 at 17:03
I think you should re-consider a 3rd party host like rackspace or amazon for images (not an image host), extremely easy to manage when set up and it solves many problems. – Wyck Feb 10 '12 at 17:14
up vote 2 down vote accepted

Would some form of this solution work? Capistrano: Managing an uploads folder describes a way to update the symlink when deploying so you don't lose the uploads folder.

share|improve this answer

I think .gitignore will help you:


share|improve this answer
No good. Since I deploy with Capistrano, each deploy process clones the project and switches CURRENT symlink to new release folder. If I ignore uploads, I actually lose the uploads directory. The fail here is within the basic idea of including the media inside the project, and not in a seperate media server. – konzepz Jan 20 '12 at 12:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.