{"action":"created","issue":{"url":"https://api.github.com/repos/nolanlawson/pouchdb-load/issues/11","labels_url":"https://api.github.com/repos/nolanlawson/pouchdb-load/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/nolanlawson/pouchdb-load/issues/11/comments","events_url":"https://api.github.com/repos/nolanlawson/pouchdb-load/issues/11/events","html_url":"https://github.com/nolanlawson/pouchdb-load/issues/11","id":58482828,"number":11,"title":"Local files in iOS","user":{"login":"vpease","id":1469744,"avatar_url":"https://avatars.githubusercontent.com/u/1469744?v=3","gravatar_id":"","url":"https://api.github.com/users/vpease","html_url":"https://github.com/vpease","followers_url":"https://api.github.com/users/vpease/followers","following_url":"https://api.github.com/users/vpease/following{/other_user}","gists_url":"https://api.github.com/users/vpease/gists{/gist_id}","starred_url":"https://api.github.com/users/vpease/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpease/subscriptions","organizations_url":"https://api.github.com/users/vpease/orgs","repos_url":"https://api.github.com/users/vpease/repos","events_url":"https://api.github.com/users/vpease/events{/privacy}","received_events_url":"https://api.github.com/users/vpease/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-22T00:33:16Z","updated_at":"2015-02-22T18:23:58Z","closed_at":"2015-02-22T17:10:09Z","body":"For local files, you can just use the filename and path in the url but for iOS a modification must be done. \r\n\r\nline 188:\r\nif ((xhr.status >= 200 && xhr.status < 300) || (xhr.status==0 && xhr.responseText.length>0) ) {\r\n\r\nthe additional or condition is because for some reason, iOS is returning 0 as the status for the xhr request even when there is data loaded from file. Maybe this is because file is not http but anyway now its working for Android, WP and iOS. \r\n"},"comment":{"url":"https://api.github.com/repos/nolanlawson/pouchdb-load/issues/comments/75449352","html_url":"https://github.com/nolanlawson/pouchdb-load/issues/11#issuecomment-75449352","issue_url":"https://api.github.com/repos/nolanlawson/pouchdb-load/issues/11","id":75449352,"user":{"login":"nolanlawson","id":283842,"avatar_url":"https://avatars.githubusercontent.com/u/283842?v=3","gravatar_id":"","url":"https://api.github.com/users/nolanlawson","html_url":"https://github.com/nolanlawson","followers_url":"https://api.github.com/users/nolanlawson/followers","following_url":"https://api.github.com/users/nolanlawson/following{/other_user}","gists_url":"https://api.github.com/users/nolanlawson/gists{/gist_id}","starred_url":"https://api.github.com/users/nolanlawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolanlawson/subscriptions","organizations_url":"https://api.github.com/users/nolanlawson/orgs","repos_url":"https://api.github.com/users/nolanlawson/repos","events_url":"https://api.github.com/users/nolanlawson/events{/privacy}","received_events_url":"https://api.github.com/users/nolanlawson/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T18:23:58Z","updated_at":"2015-02-22T18:23:58Z","body":"@vpease I've reopened the issue. Can you provide a test case to reproduce and/or a pull request on the `pouchdb-ajax` module here: https://github.com/pouchdb/ajax/blob/77423f8426575c715f39d7e6c19461fb3a28a9e0/request-browser.js ? It's much much easier to understand this error with a test case. :)"}}