{"action":"closed","issue":{"url":"https://api.github.com/repos/SEL-Columbia/pyxform/issues/109","labels_url":"https://api.github.com/repos/SEL-Columbia/pyxform/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/SEL-Columbia/pyxform/issues/109/comments","events_url":"https://api.github.com/repos/SEL-Columbia/pyxform/issues/109/events","html_url":"https://github.com/SEL-Columbia/pyxform/issues/109","id":26052777,"number":109,"title":"add type=\"file\"","user":{"login":"MartijnR","id":627350,"avatar_url":"https://avatars.githubusercontent.com/u/627350?v=3","gravatar_id":"","url":"https://api.github.com/users/MartijnR","html_url":"https://github.com/MartijnR","followers_url":"https://api.github.com/users/MartijnR/followers","following_url":"https://api.github.com/users/MartijnR/following{/other_user}","gists_url":"https://api.github.com/users/MartijnR/gists{/gist_id}","starred_url":"https://api.github.com/users/MartijnR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartijnR/subscriptions","organizations_url":"https://api.github.com/users/MartijnR/orgs","repos_url":"https://api.github.com/users/MartijnR/repos","events_url":"https://api.github.com/users/MartijnR/events{/privacy}","received_events_url":"https://api.github.com/users/MartijnR/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-01-21T23:05:07Z","updated_at":"2015-09-14T16:41:25Z","closed_at":"2015-09-14T16:41:25Z","body":"The WHO project includes the development of the following feature:\r\n\r\n_\"generic file inputs for browsers that support the current media inputs. This will allow users to upload docs or pdfs e.g.\"_\r\n\r\nI propose to use the following xml to do this:\r\n\r\n```xml\r\n<bind nodeset=\"/files/my_file\" type=\"binary\"/>\r\n.....\r\n<upload mediatype=\"application/*\" ref=\"/files/my_file\">\r\n      <label>Generic File widget</label>\r\n</upload>\r\n```\r\n\r\nSurprisingly this already works in Aggregate! (and for PDFs even shows a preview)\r\n\r\nIt doesn't break ODK Collect either (which shows just a text input) which is great.\r\n\r\nI propose to add a new type to PYXForm: `type=\"file\"` that will create the proposed XForm output (this is more or less in line with the existing type=\"video\", type=\"image\" and type=\"audio\").\r\n\r\n@ukanga, @larryweya, @mberg \r\n\r\nP.S. probably needs change in ona as well to accept these files in submission?"}}