SharePoint: Save string content as a file in Document Library from Client Side with a metadata column.
My previous post Save string content as a file in Document Library from Client Side explains how to add a string content as a file in SharePoint document Library. This post just extends the previous post. Suppose you have a metadata column in document library which describes some metadata about the file. For example there is a column called " FileInfo " which will describe some information about the file. So now we need to pass value to this column while adding the file. Let us see how this can be done. function AddFileToDocumentLibrary(str) { var strm = Base64.encode(str); strm = strm.replace(/ /g, ''); $().SPServices({ operation: "CopyIntoItems", webURL: getCurrentUrl(), processData: false, async: false, SourceUrl: "http://null", Stream: strm, ...