node-XMLHttpRequest icon indicating copy to clipboard operation
node-XMLHttpRequest copied to clipboard

support upload

Open andrewrk opened this issue 12 years ago • 4 comments

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.

andrewrk avatar Aug 16 '12 17:08 andrewrk

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

chetandhembre avatar Oct 03 '12 14:10 chetandhembre

Same need here, is there any development of this feature? Maybe another package that would implement it? Thanks. :-)

Pragmateek avatar Jun 16 '17 20:06 Pragmateek

+1

sugarshin avatar May 09 '18 07:05 sugarshin

+1

BruceAn1978 avatar May 19 '18 15:05 BruceAn1978