Can't upload images to Ghost blog

November 14, 2014 2.6k views

Started a Ghost blog using the preset application and when I attempt to upload an image it will fail. Just gives a 'Something Wrong'.

Checked the nginx config file for upload size and the permissions to the uploads folder and all seem fine.

Any ideas?

  • Hey! Are you seeing anything in the error logs? Run tail /var/log/nginx/error.log And what are the permission on the images directory? ls -la /var/www/ghost/content/images/

  • Changed it to 777, and that didn't work. Ended up destroying and setting up a new instance and it seems to be working now.

  • Glad to hear the new instance is working as expected. Image uploads should be working out of the box on the Ghost one-click app. Let us know if you hit any other issues!

  • Greetings

    I wrote some of my experience solving my problem

    Short version of the text: chown -hR ghost:ghost /var/www/ghost/content/images/

    PS: path of the images folder may differ on usage dont copy paste it blindly.

  • I can confirm similarly to aliilkertopcu - the problem was with permissions on the images directory. /content/images/... within your ghost instance. Make sure to change the ownership of that directory to ghost and group to ghost, so while running as root user:

    chown ghost images
    chgrp ghost images

1 Answer
Have another answer? Share your knowledge.