I had the same error. To re-iterate from my previous post, for some reason the owner of the Device folder (on the Iphone) was root whereas the login uses "mobile" user. Login as root on the device using ssh and change the owner to mobile and you should be able to create files using mobile user. Also, check other folders; my artworks folder and content was owned by root not mobile.
Bookmarks