01-04-2012 10:37 AM
01-19-2012 12:04 PM
// create document in company home for uploaded file
upload = companyhome.createFile("upload" + companyhome.children.length + "_" + filename) ;
upload.properties.content.write(content);
upload.properties.content.setEncoding("UTF-8");
upload.properties.content.guessMimetype(filename);
upload.specializeType("prop:documents");
upload.properties["yourCustomPrefix:yourCustomProperty1"] = value1;
upload.properties["yourCustomPrefix:yourCustomProperty2"] = value2;
…
…
upload.properties.title = title;
upload.properties.description = description;
upload.save();
// setup model for response template
model.upload = upload;
Hope this helps.
02-06-2012 04:01 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.