Created
June 9, 2014 09:57
-
-
Save scaleupcto/19eca489741d6341489c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
app.get('/my/tn/upload/endpoint',function(req,res) { | |
var depotRequest = http.createRequest(....) | |
// handler for receving a chunk of file from web app | |
req.on('data', function(chunk) { | |
depotRequest.write(chunk); // send a chunk at a time to depot, see http://nodejs.org/api/http.html#http_request_write_chunk_encoding | |
}); | |
req.on('end',function() { | |
res.send(200); | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment