manoj kumar
manoj kumar

Reputation: 19

i want to add attachment file from my computer in alfresco?

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

Answers (1)

kinjelom
kinjelom

Reputation: 6450

  1. Alfresco 5.1: POST /alfresco/service/api/upload. In this version the new REST API doesn't include methods for nodes.

  2. 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

Related Questions