Skip to content

support upload #37

Open
andrewrk opened this Issue Aug 16, 2012 · 1 comment

2 participants

@andrewrk

In the browser, the api looks something like this:

$('#file').on('change', function (event) {
  var xhr = new XMLHttpRequest();
  xhr.upload.addEventListener('progress', onProgress, false);
  xhr.addEventListener('load', onSuccess, false);
  xhr.open('POST', '/upload/audio');
  fd = new FormData();
  fd.append('file', event.target.files[0]);
  xhr.send(fd);
});

I'd like to have this functionality with node.js so I can do testing.

@chetandhembre

i am also facing same problem.... need solution...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.