Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save wei-lee/1099591 to your computer and use it in GitHub Desktop.
$fh.file example
$fh.file({
act: 'upload',
filepath: '/example/file/path/image.jpg',
server: 'http://example.com/upload'
}, function (res) {
alert("Response is " + res.res + ". Sent data : " + res.size);
}, function (err) {
alert("Error " + err);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment