cancel
Showing results for 
Search instead for 
Did you mean: 

How to add two files for the same type?

rleones
Champ in-the-making
Champ in-the-making
Hi,

I need to upload two files for the same type. What do I need to do to get it works?

I've already created a new cm:content attribute in the type I need to do this, but I don't know how I can upload this file or even if it's possible to do it this way…

Someone can help me?
5 REPLIES 5

openpj
Elite Collaborator
Elite Collaborator
You have to add a new d:content property in your own custom content model.
Then you should use one of the Alfresco APIs to create your own front end service to allow uploading two files for the same node.

Hope this helps.

rleones
Champ in-the-making
Champ in-the-making
Thanks for the reply.

I've already done it, but I have no idea how to upload two contents for the same node using Web Services…

Do you have any example of code?

scouil
Star Contributor
Star Contributor
EDIT:
My answer was totally off-topic sorry.
Removed!

rleones
Champ in-the-making
Champ in-the-making
Thanks for your reply Scouil, but I'm using Web Services and not WebScripts. I'm not able to go forward and I've tried a lot of things that didn't work…

mrogers
Star Contributor
Star Contributor
You will have to roll your own web service, since all the web services incuding the CMIS ones will expect just a single content property.

WebScripts are far easier for this sort of thing.