Question

problem in uploading images using php image upload script

Posted December 25, 2014 3.8k views

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.

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.

×
1 answer

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
Submit an Answer