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, "{http://www.wearport.com/model/content/1.0}art");
      }
      
      file.properties.content.write(filecontent);
      file.properties.content.encoding = "UTF-8";
      file.properties.content.mimetype = mimetype;
      file.properties.title = 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.

Outcomes