Table of contents
TOC
Collapse the table of content
Expand the table of content

FileFolderExtensions.UploadFile Method

SharePoint Dev Documents|Last Updated: 6/19/2017
|
1 Contributor

Uploads a file to the specified folder.

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static File UploadFile(this Folder folder, String fileName, String localFilePath, Boolean overwriteIfExists)

Parameters

folder

  Type: Microsoft.SharePoint.Client.Folder
  Folder to upload file to.

fileName

  Type: System.String
  Name of the file

localFilePath

  Type: System.String
  Location of the file to be uploaded.

overwriteIfExists

  Type: System.Boolean
  true (default) to overwite existing files

Return Value

Type: File
The uploaded File, so that additional operations (such as setting properties) can be done.

See also

© 2018 Microsoft