wordpressmacosunixchmod

The uploaded file could not be moved to wp-content/uploads


I am trying to upload pictures in WordPress but I get this error:

The uploaded file could not be moved to wp-content/uploads.

I am running it in localhost but the answers I have found are to change the folder permissions to 777 on the server.

I tried making an uploads folder myself, but it's of no use and there is no option to change the folder permissions to anything except read and write.

I'm using XAMPP on Mac OS X; I'm new to WordPress - how can I fix this?


Solution

  • Provided that your wordpress directory is "owned" by the correct user, you should see your problem resolved if you set the permissions to 755.

    Log on to your server, and cd to wp-content, then run:

    chmod 755 uploads