Hi everyone, my question is how to upload products from WordPress admin panel. As I open Administrator there I found an option of products. There I open add new product after submitting every details when I try to upload a product image WordPress gave me an error written “Forbidden, you can not upload images”. Anybody know its solution?
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!
Hi @adventuresdream,
The image upload issue in WordPress is typically caused by incorrect file permissions.
You’ll need to SSH to your droplet
ssh root@YourDropletIP
As soon as you are in, go to /wp-content/ folder in your DocumentRoot. Inside, you’ll find the uploads folder, which is where WordPress stores all your media uploads including images. You’ll need to make the permissions of the folder 755 and to all files as 644. You can achieve this by executing the following two commands
find /path/to/your/wp-contet/ -type f -exec chmod 644 {} \;
find /path/to/your/wp-contet/ -type d -exec chmod 755 {} \;
Regards, KDSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.