Warning i get live is:
Warning: move_uploaded_file(…/images/products/wolf - Copy.jpg): failed to open stream:
Permission denied in /usr/local/pem/vhosts/171950/webspace/httpdocs/piercemcgeough.co.uk/com533/wolfhatmartialarts/admin/addproduct.php on line 46
Warning: move_uploaded_file(): Unable to move ‘/usr/local/pem/vhosts/171950/tmp/phpOWqMkC’ to ‘…/images/products/wolf - Copy.jpg’ in /usr/local/pem/vhosts/171950/webspace/httpdocs/piercemcgeough.co.uk/com533/wolfhatmartialarts/admin/addproduct.php on line 46
1/ Echo out your variables to see what they contain.
2/ This looks like your problem “Unable to move '/usr/local/pem/vhosts/171950/tmp/phpOWqMkC” as the file does not have an extension and it is to much of a coincidence to be a random name starting with php.
Sorry im a bit of a noob with file uploads. Just have the code from above in the addproduct.php file and want it to locate the image up a level and back into images/products.
No idea about permissions. Im using blacknight hosting
It looks like your problem is a permission one as you have the error "Permission denied ".
I am not sure if moving a file needs the folder permissions changing but I would try changing the permission of products to 777
In your FTP program when you look at the folder it probably has a permission of 644 try changing that to 777 - right click on the foldername - change permission. You may be able to set ti to 757 or 755 if this works.