I am can’t create WP directory uploads

73 views
asked Mar 14, 2013 in General by mike231 (2,480 points)
I am not able to upload images in my site, I keep getting the error message: 'Unable to create directory uploads/2013/03. '
I checked all my permissions. I tried deactivating my plugins and switched the theme but nothing worked. Uploading images using FTP to the directory works but I can’t add them to my site. Can anyone please help?
Many thanks

1 Answer

0 like 0 dislike
answered Mar 14, 2013 by expert (14,380 points)
Add the below code  lines to your wp-config.php file

define('UPLOADS', '/yourdomainname/wp-content/uploads');
define('WP_CONTENT_URL', 'http://yourdomainname.com/wp-content');
...