Skip to content

Instantly share code, notes, and snippets.

@jkuester
Last active June 21, 2022 16:36
Show Gist options
  • Save jkuester/4da0e39d2dd839c0b7d5dfeafd46c49b to your computer and use it in GitHub Desktop.
Save jkuester/4da0e39d2dd839c0b7d5dfeafd46c49b to your computer and use it in GitHub Desktop.
159_file_picker
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://www.w3.org/1999/xhtml">
<h:head>
<h:title>Photos on Android - Demo Form</h:title>
<model>
<instance>
<photos-on-android id="159_file_picker">
<my_photo/>
<meta>
<instanceID/>
</meta>
</photos-on-android>
</instance>
<bind nodeset="/159_file_picker/my_photo" type="binary"/>
</model>
</h:head>
<h:body>
<upload ref="/159_file_picker/my_photo" mediatype="image/*">
<hint>Select a picture or take a photo</hint>
<label>Image widget</label>
</upload>
</h:body>
</h:html>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://www.w3.org/1999/xhtml">
<h:head>
<h:title>Photos on Android - Demo Form</h:title>
<model>
<instance>
<photos-on-android id="159_file_picker">
<my_photo/>
<meta>
<instanceID/>
</meta>
</photos-on-android>
</instance>
<bind nodeset="/photos-on-android/my_photo" type="binary"/>
</model>
</h:head>
<h:body>
<upload ref="/photos-on-android/my_photo" mediatype="image/*">
<hint>Select a picture or take a photo</hint>
<label>Image widget</label>
</upload>
</h:body>
</h:html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment