AnsweredAssumed Answered

Upload to folder fails - Cannot call createNode of Null

Question asked by shikarishambu on Mar 26, 2010
Latest reply on Mar 26, 2010 by shikarishambu
I am trying to upload a file into a folder that is below the company home folder. How do I upload a file to a folder that is one or two levels below the company_home?


upload = companyhome.childByNamePath("/Inbox/").createNode("upload" + "_" + filename,"mymodel:doc", props) ;
upload.properties.content.write(content);
upload.properties.encoding = "UTF-8";
upload.save();

Here Inbox is a folder below the companyhome. This code fails with the following error


Cannot call method "createNode" of null

TIA

Outcomes