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: 8.2.23
Syntax void UploadFile(
string serverRelativeUrl,
Stream stream,
bool overwriteExisting
)
Parameters
- serverRelativeUrl
- Type: SystemString
Server relative URL of the file. - stream
- Type: CMS.IOStream
Stream with the file content. - overwriteExisting
- Type: SystemBoolean
If true, an existing file will be overwritten when it already exists.
Exceptions See Also