Click or drag to resize
Galactic API

SharePointFolderUploadFile Method

Uploads a file to the folder.

Namespace:  Galactic.SharePoint
Assembly:  Galactic.SharePoint (in Galactic.SharePoint.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public bool UploadFile(
	string name,
	Stream stream,
	int fileLength,
	SharePointClient client,
	Dictionary<string, Object> requiredFieldValues = null
)

Parameters

name
Type: SystemString
The name of the file to upload.
stream
Type: System.IOStream
The IO stream object representing the file's contents.
fileLength
Type: SystemInt32
The length of the file in bytes.
client
Type: Galactic.SharePointSharePointClient
The SharePoint client that will be used to upload the file.
requiredFieldValues (Optional)
Type: System.Collections.GenericDictionaryString, Object
Optional: A dictionary with values for fields that are required to be supplied when uploading the file to the folder in SharePoint.

Return Value

Type: Boolean
True if the file could be uploaded, false otherwise.
See Also