Question
Can't upload images to Ghost blog
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?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
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.
http://aliilkertopcu.com/cant-upload-images-using-default-ghost-interface/
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