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.
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).
Upload error. Could not move uploaded file leaflet_front.jpg to destination public://field/image/leaflet_front.jpg.
The file upload failed. field_image_und_0