Pre-condition - app-context.xml <beans:property name="allowFileId" value="true" /> User with publisher role can not upload new metadata files.