10-18-2013 09:27 AM
URL: http://localhost:8080/alfresco/service/api/upload/?alf_ticket = {User's ticket}
parameters: [filedata, filename, description, siteid, containerId]
10-18-2013 11:45 PM
URL: http://localhost:8080/alfresco/service/api/upload/?alf_ticket = {User's ticket}
File file = new File("C:/Test_Upload.pdf");
String filetype = "application/pdf"
String filename="Test_Upload.pdf";
HttpClient client = new HttpClient();
PostMethod post = new PostMethod(URL);
Part[] parts = {
new FilePart("filedata", filename, file, filetype, null),
new StringPart("filename", filename),
new StringPart("description", "description"),
new StringPart("siteid", "yoursite"),
new StringPart("containerid", "documentLibrary"),
// your can add more paramter here
//new StringPart("uploaddirectory", "documentLibrary"),
//new StringPart("updatenoderef", "updatenoderef"),
//new StringPart("contenttype", "contenttype"),
//new StringPart("aspects", "aspects")
…..
};
post.setRequestEntity(new MultipartRequestEntity(parts, post.getParams()));
int status = client.executeMethod(post);
System.out.println(post.getResponseBodyAsString());
post.releaseConnection();
11-27-2014 12:36 PM
10-21-2013 09:00 AM
10-21-2013 09:02 AM
10-22-2013 09:30 AM
Part[] parts = {
new FilePart("filedata", filename, file, filetype, null),
new StringPart("filename", filename),
new StringPart("description", "description"),
// new StringPart("siteid", "yoursite"),
// new StringPart("containerid", "documentLibrary"),
new StringPart("destination", "workspace://SpacesStore/7118e242-86b1-489a-ac2e-193364ccf6e4"),
}
11-27-2014 12:38 PM
10-22-2013 12:40 PM
12-18-2013 05:57 AM
POST localhost:8080/alfresco/service/api/node/workspace/SpacesStore/15fc9618-56a5-4037-ac25-508899d5ba28/children
{"alf_destination":"workspace://SpacesStore/15fc9618-56a5-4037-ac25-508899d5ba28","prop_cm_name":"test","prop_cm_title":"","prop_cm_description":""}
12-18-2013 06:19 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.