{"action":"created","issue":{"url":"https://api.github.com/repos/adapt-it/adapt-it-mobile/issues/63","labels_url":"https://api.github.com/repos/adapt-it/adapt-it-mobile/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/adapt-it/adapt-it-mobile/issues/63/comments","events_url":"https://api.github.com/repos/adapt-it/adapt-it-mobile/issues/63/events","html_url":"https://github.com/adapt-it/adapt-it-mobile/issues/63","id":67632782,"number":63,"title":"ios - import project / document shows photos, not documents","user":{"login":"eb1","id":1458944,"avatar_url":"https://avatars.githubusercontent.com/u/1458944?v=3","gravatar_id":"","url":"https://api.github.com/users/eb1","html_url":"https://github.com/eb1","followers_url":"https://api.github.com/users/eb1/followers","following_url":"https://api.github.com/users/eb1/following{/other_user}","gists_url":"https://api.github.com/users/eb1/gists{/gist_id}","starred_url":"https://api.github.com/users/eb1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eb1/subscriptions","organizations_url":"https://api.github.com/users/eb1/orgs","repos_url":"https://api.github.com/users/eb1/repos","events_url":"https://api.github.com/users/eb1/events{/privacy}","received_events_url":"https://api.github.com/users/eb1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/adapt-it/adapt-it-mobile/labels/iOS","name":"iOS","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/adapt-it/adapt-it-mobile/milestones/4","html_url":"https://github.com/adapt-it/adapt-it-mobile/milestones/Milestone%200.25","labels_url":"https://api.github.com/repos/adapt-it/adapt-it-mobile/milestones/4/labels","id":886434,"number":4,"title":"Milestone 0.25","description":"Document creation and import","creator":{"login":"eb1","id":1458944,"avatar_url":"https://avatars.githubusercontent.com/u/1458944?v=3","gravatar_id":"","url":"https://api.github.com/users/eb1","html_url":"https://github.com/eb1","followers_url":"https://api.github.com/users/eb1/followers","following_url":"https://api.github.com/users/eb1/following{/other_user}","gists_url":"https://api.github.com/users/eb1/gists{/gist_id}","starred_url":"https://api.github.com/users/eb1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eb1/subscriptions","organizations_url":"https://api.github.com/users/eb1/orgs","repos_url":"https://api.github.com/users/eb1/repos","events_url":"https://api.github.com/users/eb1/events{/privacy}","received_events_url":"https://api.github.com/users/eb1/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":9,"state":"open","created_at":"2014-12-01T19:06:04Z","updated_at":"2015-04-22T00:44:00Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-04-10T16:35:40Z","updated_at":"2015-04-22T00:44:00Z","closed_at":"2015-04-22T00:44:00Z","body":"On the Copy Project / Import Documents page there is an html `<input type=file>` element that when clicked displays a browse dialog that allow the user to choose a file. This is working as expected in the desktop browser.\r\n\r\nHowever on iOS, the underlying UIWebView used by cordova limits this html tag by only allowing users to choose images from the device. This appears to be by design -- see http://www.mobilexweb.com/blog/iphone-5-ios-6-html5-developers.\r\n\r\nI'm currently looking at some other possibilities for getting documents into AIM for iOS. I do see that dropbox has plugin for Cordova; there might be other options out there."},"comment":{"url":"https://api.github.com/repos/adapt-it/adapt-it-mobile/issues/comments/94984969","html_url":"https://github.com/adapt-it/adapt-it-mobile/issues/63#issuecomment-94984969","issue_url":"https://api.github.com/repos/adapt-it/adapt-it-mobile/issues/63","id":94984969,"user":{"login":"eb1","id":1458944,"avatar_url":"https://avatars.githubusercontent.com/u/1458944?v=3","gravatar_id":"","url":"https://api.github.com/users/eb1","html_url":"https://github.com/eb1","followers_url":"https://api.github.com/users/eb1/followers","following_url":"https://api.github.com/users/eb1/following{/other_user}","gists_url":"https://api.github.com/users/eb1/gists{/gist_id}","starred_url":"https://api.github.com/users/eb1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eb1/subscriptions","organizations_url":"https://api.github.com/users/eb1/orgs","repos_url":"https://api.github.com/users/eb1/repos","events_url":"https://api.github.com/users/eb1/events{/privacy}","received_events_url":"https://api.github.com/users/eb1/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T00:44:00Z","updated_at":"2015-04-22T00:44:00Z","body":"Fixed on both iOS and Android:\r\n\r\n- When running on a browser, the html `<input type=file>` will continue to be displayed.\r\n- When running on a mobile device, the plugin `cordova-plugin-file` is used to query the device for available project files or document files, depending on the task. For the document import, the files are laid out on a grid with checkboxes -- the user selects the items they want to import and click the Import button to bring them in. Allowed document file types are .txt, .usx, .usfm, .sfm and .xml; allowed project file types are .aic."}}