AnsweredAssumed Answered

Title is null???

Question asked by spdaly on Sep 12, 2008
Latest reply on Sep 12, 2008 by spdaly
I have a webscript that takes a file that is POSTed and creates a new node and places it into a new node.  Some metadata is also passed.  One item is the title of the file.  Here's the script:

      var file = folder.childByNamePath(filename);
      if (file==null) {
         var file = folder.createNode(filename, "{}art");
   ; = "UTF-8"; = mimetype; = title;

The file is written. The encoding and mimetype are correct, but the title remains null. 

I use the node browser and there is a property called title, but it's null!

I'm not sure what I'm doing wrong.