cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Metadata to files uploading through FTP

tejakantamneni
Champ in-the-making
Champ in-the-making
I am trying to upload/add some files to alfresco using FTP. Is there any way to add custom metadata to each file along with actual file. Maybe like sending an extra file with each file with metadata?
3 REPLIES 3

loftux
Star Contributor
Star Contributor
That is what I implemented for a client recently. They had a legacy system where they could only upload through FTP. The approach was
First upload
contentfile.doc
then
contentfile.doc.xml

and in the xml put the metadata that needed to ba added to the file.

In the target folder, put a rule that triggers when an xml file is added (hence the upload order, the actual content file is there). Process the xml file and add the metadata to contenfile.doc, and finally delete the xml.

tejakantamneni
Champ in-the-making
Champ in-the-making
Thanks. will try.

-Teja

tejakantamneni
Champ in-the-making
Champ in-the-making
If possible could you please share the script you used to copy the metadata?