Reputation: 19
enter image description herewhile clicking attachments select button in adding new item in custom data list, I want to add files from windows explorer in client side instead of from server.
abve image is adding attachments from server i dont want that, i want to add files from windows explorer in client pc.
Upvotes: 0
Views: 214
Reputation: 6450
Alfresco 5.1: POST /alfresco/service/api/upload
. In this version the new REST API doesn't include methods for nodes.
Alfresco 5.2 EA: the new REST endpoint POST /nodes/{nodeId}/children
, that supports file upload using multipart/form-data.
curl -X POST
--header 'Content-Type: application/json'
--header 'Accept: application/json'
--header 'Authorization: Basic YWRtaW46YWRtaW4='
-d '{"name":"my-new-file"}'
'http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/parent-node-id/children'
Upvotes: 1