Report this

What is the reason for this report?

problem in uploading images using php image upload script

Posted on December 25, 2014

I am unable to upload images using php image upload script. The upload image is not moving to the folder but this scrip is working in other web hosting.



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!

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.

Are you getting any errors? It sounds like Apache doesn’t have permission to create files in your upload directory. Try granting the www-data user (which Apache runs as) write privileges to your upload directory:

sudo chgrp www-data /var/www/path/to/uploads
sudo chmod g+w /var/www/path/to/uploads

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.