docparse-upload-create

Create a new upload document in the database

npm install docparse-upload-create
14 downloads in the last week
56 downloads in the last month

Docparse Upload Create

Create a new upload document in the database. The upload should be an instance of docparse-upload.

Build Status Dependency Status Dependency tracking by David

Usage

var inspect = require('eyespect').inspector();
var create = require('docparse-upload-create');
var data = {
  hash: 'foo hash',
  supplierCode: 'FGS',
  userID: 'fooUserID' // this should be an _id ObjectId of a docparse-user instance
}
create(data, function(err, reply) {
  if(err) {
    inspect(err, 'error creating upload);
    return;
  }
  inspect(reply.toObject(), 'created upload');
});

Installation

npm install docparse-upload-create

npm loves you