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: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
protected override Dictionary<string, string> ImportDocument(
	HttpContext context,
	string filename,
	string contentType,
	string contentTypeDocumentClass,
	string contentTypeDescription
)

Parameters

context
Type: System.WebHttpContext
The HttpContext
filename
Type: SystemString
The path to where the file has been uploaded.
contentType
Type: SystemString
The name of the Sharepoint list to which the document will be added to.
contentTypeDocumentClass
Type: SystemString
This is the Sharepoint ContentType that the document is created as.
contentTypeDescription
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