Deleted.

cancel
Showing results for 
Search instead for 
Did you mean: 
anon26949
Established Member

Deleted.

Jump to solution

Deleted.

1 Solution

Accepted Solutions
angelborroy
Alfresco Employee

Re: How to upload a new version of a file by using WebScript?

Jump to solution

You can find the nodeRef for the document by searching only in target folder (assuming that the same name can be stored in different folders). After that, if you use ContentWriter with the right nodeRef, Alfresco will version the node automatically. 

Some similar code available at:

https://github.com/keensoft/alfresco-esign-cert/blob/master/esign-cert-repo/src/main/java/es/keensof...

Hyland Developer Evangelist

View solution in original post

1 Reply
angelborroy
Alfresco Employee

Re: How to upload a new version of a file by using WebScript?

Jump to solution

You can find the nodeRef for the document by searching only in target folder (assuming that the same name can be stored in different folders). After that, if you use ContentWriter with the right nodeRef, Alfresco will version the node automatically. 

Some similar code available at:

https://github.com/keensoft/alfresco-esign-cert/blob/master/esign-cert-repo/src/main/java/es/keensof...

Hyland Developer Evangelist

View solution in original post