{"action":"opened","issue":{"url":"https://api.github.com/repos/jBenes/angular-imgcache.js/issues/3","labels_url":"https://api.github.com/repos/jBenes/angular-imgcache.js/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/jBenes/angular-imgcache.js/issues/3/comments","events_url":"https://api.github.com/repos/jBenes/angular-imgcache.js/issues/3/events","html_url":"https://github.com/jBenes/angular-imgcache.js/issues/3","id":53950601,"number":3,"title":"Failing in iOS using Cordova","user":{"login":"jfrumar","id":1927629,"avatar_url":"https://avatars.githubusercontent.com/u/1927629?v=3","gravatar_id":"","url":"https://api.github.com/users/jfrumar","html_url":"https://github.com/jfrumar","followers_url":"https://api.github.com/users/jfrumar/followers","following_url":"https://api.github.com/users/jfrumar/following{/other_user}","gists_url":"https://api.github.com/users/jfrumar/gists{/gist_id}","starred_url":"https://api.github.com/users/jfrumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfrumar/subscriptions","organizations_url":"https://api.github.com/users/jfrumar/orgs","repos_url":"https://api.github.com/users/jfrumar/repos","events_url":"https://api.github.com/users/jfrumar/events{/privacy}","received_events_url":"https://api.github.com/users/jfrumar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-10T07:52:34Z","updated_at":"2015-01-10T07:52:34Z","closed_at":null,"body":"This is great - thank you. It's working fine in Android, but in iOS using the latest Cordova (4.2.0 cli, iOS 3.7.0) I am stuck  - it's attempting to write to a bad path:\r\n\r\n`2015-01-09 23:49:35.744 GroupAhead[4902:36770] FileTransferError {\r\n    body = \"Could not create path to save downloaded file: The operation couldn\\U2019t be completed. (Cocoa error 513.)\";\r\n    code = 1;\r\n    \"http_status\" = 200;\r\n    source = \"http://10.0.0.2:1337/images/uploaded_photos/groupahead/thumbnail/thumbnail-groupahead_79700c48-c6ef-4202-9d3f-b900989cc3ad.jpg?groupkey=groupahead&token=3673f31d3cf0d641bc72fdbb1110f2c4204fa634c1c9a967770a93cbfe17a7af&v=1.0.0\";\r\n    target = \"cdvfile://localhost/root/imgcache/c9c8591092e4085047e99644adc7f8588e869cfe.jpg\";\r\n}\r\n2015-01-09 23:49:35.744 GroupAhead[4902:36770] File Transfer Error: Could not create path to save downloaded file: The operation couldn’t be completed. (Cocoa error 513.)`\r\n\r\nWhen I put a String.replace call in to change the path from `cdvfile://localhost/root/imgcache/c9c85....` to `cdvfile://localhost/persistent/imgcache/c9c85...` it started working. So I am pretty sure it's attempting to write to the wrong path."}}