Deleted.

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

Deleted.

Jump to solution

Deleted.

1 Solution

Accepted Solutions
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...

Software Engineer in Alfresco Search Team.

View solution in original post

1 Reply
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...

Software Engineer in Alfresco Search Team.

View solution in original post