Hi,
I am having trouble uploading files with the Content Server 22.2 REST API.
https://developer.opentext.com/ce/products/extendedecm/apis/contentserver222restapi
POST /v2/nodes
Create document
required fields: type, parent_id, name, (file or upload_key)
defaults: type = 144
Please tell me about the above.
Is the Content-Type request header of this API only supported by application/x-www-form-urlencoded?
Will multipart/form-data be supported as described in below(*)?
Upon verification
application/x-www-form-urlencoded resulted in an error
It succeeded for multipart/form-data.
For application/x-www-form-urlencoded
I understand that it is assumed that the OpenText Extended ECM server can reference files using UNC paths by SMB, etc.
In other words, if the file cannot be referenced from the ECM server,
The understanding is that I need to send the contents of the file I want to upload directly to the API with multipart/form-data.
https://developer.opentext.com/ce/products/extendedecm/documentation/contentserverrestapiquickstartguide/2
name: Content-Type
value: application/x-www-form-urlencoded OR application/multpart/form-data
https://forums.opentext.com/forums/developer/discussion/301993/uploading-files-in-rest-api-fails-in-cs-20-4-build-16-2-14-1329
formData.Headers.ContentType.MediaType = "multipart/form-data";