12-06-2013 09:31 AM
12-06-2013 10:02 AM
12-10-2013 05:31 PM
12-06-2013 11:29 AM
String urlString = "http://127.0.0.1:8080/alfresco/service/api/upload?alf_ticket="
+ authTicket;
HttpClient client = new HttpClient();
PostMethod mPost = new PostMethod(urlString);
Part[] parts = {
new FilePart("filedata", filename, fileobj, filetype, null),
new StringPart("filename", filename),
new StringPart("description", description),
new StringPart("description", description),
new StringPart("siteid", "kaynezhang"),
new StringPart("containerid", "documentLibrary"),
// new StringPart("uploaddirectory", "/Company Home")
};
mPost.setRequestEntity(new MultipartRequestEntity(parts, mPost
.getParams()));
int statusCode1 = client.executeMethod(mPost);
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.