Skip to content

Instantly share code, notes, and snippets.

@wei-lee
Created July 22, 2011 15:24
Show Gist options
  • Select an option

  • Save wei-lee/1099666 to your computer and use it in GitHub Desktop.

Select an option

Save wei-lee/1099666 to your computer and use it in GitHub Desktop.
$fh.cam return file path
$fh.cam({
act: 'picture',
source: 'photo',
uri: true
}, function (res) {
if (res.uri) {
filetoupload = res.uri;
$('#result').html('<p>' + res.uri + '</p>');
var img = new Image();
img.src = res.uri;
$('#result').css('width', '100%').css('height', '90%').append(img);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment