Click or drag to resize

SharepointHandlerImportDocument Method

ImportDocument takes a path to an uploaded document, a Sharepoint document library name, a contentTypeDocumentClass, and a contentTypeDescription (e.g. a Sharepoint list ContentType) as an HTTP POST.

Namespace:  Atalasoft.Imaging.WebControls.Capture
Assembly:  Atalasoft.dotImage.WebControls (in Atalasoft.dotImage.WebControls.dll) Version: (.NET 4.5.2, x86)
protected override Dictionary<string, string> ImportDocument(
	HttpContext context,
	string filename,
	string contentType,
	string contentTypeDocumentClass,
	string contentTypeDescription


Type: System.WebHttpContext
The HttpContext
Type: SystemString
The path to where the file has been uploaded.
Type: SystemString
The name of the Sharepoint list to which the document will be added to.
Type: SystemString
This is the Sharepoint ContentType that the document is created as.
Type: SystemString
This is an unused parameter. It can be set to 'null'.

Return Value

Type: DictionaryString, String
Returns a dictionary that contains a key or 'success', or 'error'. In the case of success the values of the key will be the CMIS object id that the imported document was given. If the key is error, the value will be the error message.
See Also