ISharePointFileServiceUploadFile Method |
Uploads the file's content specified as a stream to the serverRelativeUrl location.
Namespace: CMS.SharePointAssembly: CMS.SharePoint (in CMS.SharePoint.dll) Version: 10.0.0
Syntax void UploadFile(
string serverRelativeUrl,
Stream stream,
bool overwriteExisting
)
Parameters
- serverRelativeUrl
- Type: SystemString
Server relative URL of the file. - stream
- Type: System.IOStream
Stream with the file content. - overwriteExisting
- Type: SystemBoolean
If true, an existing file will be overwritten when it already exists.
Exceptions See Also