AnsweredAssumed Answered

javascript - copy content problem

Question asked by friedman30 on Aug 12, 2007
Latest reply on Sep 10, 2007 by kevinr
hi,

I've added some custom types to alfresco. one of them is 'Image' which adds some properties to to the regular 'Content' props.

I need to make a copy of that image (which is an 'Image' type) using javascript API.

I am using the copy method :
document.copy(currentFolder);

which works great - with one major problem - the copy is not just a copy of the image, but a full copy of the properties and type.

I need to make a copy of an image, that will not have the same type of the copied image…..

so, for example, if i have myPic.jpg which is an 'Image' type - i need to create copy of myPic.jpg which is a 'Content' type.

any ideas???
:shock:

thanks,

Dror

Outcomes