Skip to content

Instantly share code, notes, and snippets.

@maxwell
Created August 9, 2012 05:02
Show Gist options
  • Save maxwell/3301148 to your computer and use it in GitHub Desktop.
Save maxwell/3301148 to your computer and use it in GitHub Desktop.
filepicker.uploadFile(evt.target, function(data){
var filename = data.url + '+' + data.data.filename
$("form input[name='photo[image_url]']").val(filename)
that.$("form").submit();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment