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) ;; = "UTF-8";;

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

Cannot call method "createNode" of null