Create a new upload document in the database

npm install docparse-upload-create
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


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);
  inspect(reply.toObject(), 'created upload');


npm install docparse-upload-create

npm loves you