This was and is working fine in my local environment, but when its on the server (hosted by Justhostme) I get this error whenever I try to upload a new image to a node. I've seen advice that it could be my temp directory so I've changed this and set 777 permissions on it. I'm very stuck with this now. I'm not getting any more error message so nothing to hint at what else it could be.
heres hoping.
Edit. I've checked the logs, and these 3 messages appears when I try to upload. The refered to folder has 777 access too. Msg 1.
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to access public://field/image/leaflet_front.jpg in file_save_upload() (line 1541 of /home/xxx/public_html/includes/file.inc).
msg2
Upload error. Could not move uploaded file leaflet_front.jpg to destination public://field/image/leaflet_front.jpg.
msg 3
The file upload failed. field_image_und_0
RESOLVED
It appears I can't self Answer this question until a period of time has passed. until then. Here is my findings. There is a long thred in the Drupal.org site surrounding this issue, I didnt locate it at first due to my error message being masked. After many hops around the net I did finally locate it, and it seems to effect quite a few people.
See this link
http://drupal.org/node/1002048
post #154 has a link to the patch for both version 7 and 8 of Drupal.