Apr 05 2008
Wordpress 2.5 Glitch and Fix
If you’re using Wordpress 2.5 (and really, you should be, it’s pretty damn awesome), you need to know this if you upload your media (pictures / sounds / videos) to a folder outside of the normal Wordpress configuration. Prior to 2.5, it didn’t matter, and most software could handle it, but if your software posts images through the XML RPC interface (in other words, if you have software and you don’t need to set FTP information to upload images / etc), this fix is for you straight from the Wordpress Codex…
The default upload path can be changed by adding a line of code to your wp-config.php file.
Just BEFORE the line that says `require_once(ABSPATH.’wp-settings.php’);`
add this line:
`define(’UPLOADS’, ‘wp-content/myimages’);`
In the example above, this will result in uploads being placed in your `wp-content/myimages/2006/01` folder. Note that 2006 is the current year, and 01 is the current month, in this case January.
If the myimages directory does not exist it will be created as long as the parent folder `wp-content` is writeable. An unwriteable parent folder will cause a message similar to this:
“Unable to create directory `/sample.com/wordpress/wp-content/myimages`. Is its parent directory writable by the server?”
A plugin alternative to enable uploading like WordPress 1.5.2 is available with Filosofo’s Old-style-uploads: http://www.ilfilosofo.com/blog/old-style-upload
See also, Changing File Permissions and a related Forum Thread http://wordpress.org/support/topic/55954
I was having this problem with Ecto and MarsEdit, but this fixed it.
I should note, of course, that I wasn’t having this problem with Stuffr, but then again I never have problems with Stuffr. In fact, the only problem I have with it is that there isn’t a Mac version.
