cancel
Showing results for 
Search instead for 
Did you mean: 

Change Filename and Type with bulkimport tool

silenr0c
Champ in-the-making
Champ in-the-making
Hi folks,

I have been using bulkimport tools for quite sometimes,
now there are necessity to change the existing file with new one that have different name and type.
e.g. picture.jpg need to change to testing.pdf.

I try to form the xml like below, filename: picture.jpg.metadata.properties.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties><entry key="type">…entry>
<entry key="cm:modified"><![CDATA[2016-06-07T14:26:57.008+08:00]]></entry>
<entry key="cm:content.mimetype"><![CDATA[application/pdf]]></entry>
<entry key="cm:name"><![CDATA[testing.pdf]]></entry>
<entry key="cm:title"><![CDATA[testing.pdf]]></entry>
</properties>


I rename testing.pdf into picture.jpg and use bulkingest tool to update the metadata and content.
what happen was, original picture.jpg still exist and does not affected by the update, instead alfresco create testing.pdf base on the ingestion.

anyone has experience for this?

Thanks
1 REPLY 1

sujaypillai
Confirmed Champ
Confirmed Champ
Your metadata file is picture.jpg.metadata.properties.xml and

<entry key="cm:content.mimetype"><![CDATA[application/pdf]]></entry>
<entry key="cm:name"><![CDATA[testing.pdf]]></entry>


Try the steps in the below url - https://github.com/pmonks/alfresco-bulk-import/wiki/Preparing-the-Source-Content
Getting started

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.