Adding system properties doesn't work:
dim oHash as new hashtable
oHash.add("DocumentType","Contract")
oHash.add("Title","Leasing agreement with Smart Leasing Inc.")
oFile = oFolder.Files.Add(
oFile.Item("Title") is not equal to "Leasing agreement...".
The only way is to modify it manually after having added the file, e.g.
dim li as SPListItem
li = oFile.Item
li("Title")="Leasing agreement..."
li.UpdateOverwriteVersion(); ' In order to avoid creating a new version
Any explanations why "Title" property cannot be set in oHash would be appreciated.
Other problems with Add has been reported various places. This blog is worth reading.