Quantcast
Channel: Stuart Roberts on all things SharePoint
Viewing all articles
Browse latest Browse all 33

Set Title Field on Document Upload

$
0
0
When uploading a file to a SharePoint library through code, you sometimes want to set item properties at the same time the document is created. To achieve this you simply populate a Hashtable object and pass this into the Add method of the SPFileCollection object: public SPFile UploadDocument(SPDocumentLibrary library, string filename, string docTitle, byte[] fileBinary) […]

Viewing all articles
Browse latest Browse all 33

Trending Articles