Skip to content

Instantly share code, notes, and snippets.

@dz0ny dz0ny/gist:655830
Created Oct 30, 2010

What would you like to do?
Example of FormaData for Chrome and Firefox
$.each(dataTransfer.files, function ( i, file ) {
var xhr = new XMLHttpRequest();
var upload = xhr.upload;
var formdata = new FormData();
formdata.append('mycustomfieldforfile', file);"POST", "/post/file");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.