I’m trying to work with adobe’s echosign REST API. The idea is I make a PDF, upload it to Echosign, and they get everyone’s signatures. I’m having trouble uploading the pdf to their server.
I’ve figured out how to do http POST requests, but I can’t find info about doing multipart uploads from meteor/node. Most instructions you find when you google are for CollectionFS type of thing, not what I’m looking for.
Right now I have something like this (for now I wrote for plain node.js):
var https = require('https');
options = {
host: 'localhost',
port:8080,
path: '/upload',
method: 'POST',
};
var callback = function(response) {
response.setEncoding('utf-8');
var responseString = '';
response.on('data', function(data) {
responseString += data;
});
response.on('end', function() {
console.log(responseString);
});
}
var request = https.request(options, callback);
request.on('error', function(e) {
console.log('There was an error: '+e);
});
request.end();