i try progression of file uploading in node js ... use form-data library integrated on request library ...
is there way progression ?
var torrentstream = require('torrent-stream'); var express = require('express'); var http = require('http'); var request var app = express(); var request = require('request'); var zipfolder = require('zip-folder'); var magnet = require('magnet-uri') var formdata = require('form-data'); var fs = require('fs'); var formdata = { files : fs.createreadstream(__dirname + '/archive.zip') }; request.post({url:'http://request.url', formdata: formdata}, function(err, httpresponse, body) { if (err) { return console.error('upload failed:', err); } console.log('upload successful! server responded with:', body); });
Comments
Post a Comment