Hi,
I need to create custom properties when I upload file :
const opts = {
name: media.name,
nodeType: 'cm:content',
include: ['allowableOperations'],
renditions: 'doclib'
};
const nodeBody = {
properties: {
'cm:title': media.name,
'mj:custom1': 'value1',
'mj:custom2': 'value2'
}
};
return this.uploadsApi.uploadFile(file, '', this.documentLibraryNode, nodeBody, opts);But I get this error:
Error: {"error":{"errorKey":"mj:custom1 isn't a valid QName. Namespace prefix mj is not mapped to a namespace URI","statusCode":400,"briefSummary":"10200018 mj:custom1 isn't a valid QName. Namespace prefix mj is not mapped to a namespace
Does-it mean I need to add xml file to tomcat/webapp/alfresco or share repository or something like this ?
Or can I resolve it with alfresco-js-api (adf) ?
How does-it-work ?
Thank you a lot in advance