Fixing broken WordPress image upload

Just a quick post on this cos I just went through it and eventually I worked it out but I lost a little piece of my sanity there for a while. This probably only applies if you have set your WordPress up in one location and then moved it. I set mine up to stage it and then I moved it into a different directory to deploy live.

Basically in the admin interface you just have to go into Settings->Miscellaneous and change the ‘Store uploads in this folder’ setting to wherever the new path is, or just setting it to ‘wp-content/uploads’ which is the default seems to work good for me. I think this setting is kind of in a weird spot which is why it was hard to find, like doesn’t it belong in the Media settings?  I actually read out there people saying to make the change directly in the database and I figured that there had to be a way to change that setting in the admin tool, which is the only reason I found it.

Also, make sure you set that folders permissions to give Apache write access (chmod 777 or whatever).

2 Comments

  1. [...] 6. The final step is to navigate in the admin interface to Settings->Miscellaneous and change the ‘Store uploads in this folder’.  I already blogged about this step here. [...]

  2. [...] 6. The final step is to navigate in the admin interface to Settings->Miscellaneous and change the ‘Store uploads in this folder’.  I already blogged about this step here. [...]

Leave a Reply