Question

([Errno 13] Permission denied)

I am getting an error when submitting an image from django admin.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @ahmedhassana007,

This sounds like an ownership or permission issue.

First, I’ll recommend trying to fix your permissions, most probably, each directory needs to have 755 permissions and each file 644. Try with that.

You can try and use the following command:

find /path/to/app -type d -exec chmod 755 {} \; find /path/to/app -type f -exec chmod 644 {} \;

Remember to change /path/to/app with the actual path to your website.

If that doesn’t work, you’ll need to change the ownership of the files. Let me know which WebService you are running so that I can further help out.