I want to add to a file custom metadata when i create the file from java.
I can add some propperties i copy from the page i saw the tutorial but i cannot add more.
This is my code:
Map<String, Object> properties2 = new HashMap<String, Object>();
properties2.put(PropertyIds.OBJECT_TYPE_ID, "cmis:document");
properties2.put(PropertyIds.NAME, file.getOriginalFilename());
properties2.put("propertyName", "propertyValue");
And this is the error i am getting:
Property 'propertyName' is not valid for this type or one of the secondary types!
Thanks.