Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Page Properties
hiddentrue


Status

Status
colourGreen
titleDONE

Priority
Note
Assignee

Ressources

Remarks

  • Version 2.0

...

Code Block
languagejs
titleCreating Multipart Form Data using FormData API
var singleFormData = new FormData()
var metadataBlob = new Blob([JSON.stringify(singleMetadata)],{type:"application/json"})
var contentBlob = new Blob([file],{type:"text/plain"})

singleFormData.append('data', metadataBlob, "metadata")
singleFormData.append('cid_63apple', contentBlob, "contentdata")


Assembling the Request

Now that we have created JSON representations for our content and metadata, we can assemble our multipart HTTP request object. We are going to go over some simple methods to accomplish this and give examples for both browser-based front-end and node.js-based back-end applications.

...

Code Block
languagejs
titleBatch Import Form Data
var multiFormData = new FormData()
          var metadataBlob = new Blob([JSON.stringify(singleMetadata)],{type:"application/json"})
          var contentBlob1 = new Blob([file],{type:"text/plain"})
          var contentBlob2 = new Blob([file2],{type:"text/plain"})


          multiFormData.append('data', metadataBlob, "metadata")
          multiFormData.append('cid_63apple', contentBlob1, "contentdata1")
          multiFormData.append('cid_64apple', contentBlob2, "contentdata2")

Assembling the Request

The multipart request JSON assembly is similar to the singular import. The same function executeRequest(request_object) can be used to send the request. 

...

Info
iconfalse

More Tutorials

Section


Column
width25%

Retrieving Documents

This tutorial uses code examples to show how to import documents via Core API into a yuuvis® API system using a Java client. 

Insert excerpt
Retrieving Documents via Core API
Retrieving Documents via Core API
nopaneltrue
Keep reading


Column
width25%

Updating Documents

This tutorial introduces some ways to retrieve metadata or content from a DMS document in the yuuvis® system via Core API.

Insert excerpt
Updating Documents via Core API
Updating Documents via Core API
nopaneltrue
 Keep reading


Column
width25%

Deleting Documents

A short tutorial that shows how to delete a DMS document in the yuuvis® system via Core API using the example of a Java client.

Insert excerpt
Deleting Documents via Core API
Deleting Documents via Core API
nopaneltrue
 Keep reading