We are trying to create a new node in Content Server by uploading a file from a local source. We want to put the document in a specific Content Server folder that we created in the Enterprise Workspace.
We tried:
POST with application/x-www-form-urlencoded
- with body: {"file":"D:\\Temp\\project_26.docx","parent_id:":"31622","name":"project_26.docx","type":"144"}
- with body {"parent_id:":"31622","name":"project_26.docx","type":"144"} and parameter file
We got the following error:
{"error": "Error: File could not be found within the upload directory."}
We tried multipart/form-data with the following parts:
- parent_id
- type
- name
- file - binary data
We got the following error:
{"error":"Missing required parameter \u0027Parent ID\u0027"}
Questions:
- It is possible to create a node with a file uploaded from a local system?
- What is the upload directory? It's shared or private to the Content Server?
- Is there any configuration required in Content Server to enable this?