Using NuxeoJS to upload files to a new batch

I'm trying to use the NuxeoJS client to upload files to a new batch. I tried:

var op = client.operation('Blob.Upload') op.params({ uploaded: 'true', batchId: 'myBatchId' }) up = op.uploader() up.uploadFile(myFile) up.execute()

I get 500 errors using Blob.Upload, or Blob.Create. These are the wrong operations and I know I can do it via the REST API is there a way I can do it via the JS client?

0 votes

0 answers

758 views

ANSWER