Hi,
I try to use angular-nuxeo to attach a blob, but I get excute exception.
Here is my code :
documentUploader(uid: string, file : File): IPromise<Object> {
let defer = this.$q.defer();
let options : any = {};
options.operationId = 'Blob.Attach';
options.client = this.nuxeo;
let myUploader : any;
myUploader = this.nuxeoClient.uploader.execute(options)
.params({
document: uid,
save : true,
xpath: "file:content"
});
myUploader.uploadFile(file)
.then((resp) => {
defer.resolve(resp);
},
(error) => {
defer.reject(error);
} );
return defer.promise;
}
How to instanciate the Uploader and then attached the blob?
Thanks for help