Click or drag to resize
EasyFileUploadExtensionsEasyUploadSingleDocument Method (FileCabinet, FileInfo, DocumentIndexField)
Uploads the specified file as new document to a basket or to a file cabinet.

Namespace: DocuWare.Platform.ServerClient
Assembly: DocuWare.Platform.ServerClient (in DocuWare.Platform.ServerClient.dll) Version: Version 6.7 [UNOFFICIAL BUILD]
Syntax
C#
[EagleAttribute]
public static Document EasyUploadSingleDocument(
	this FileCabinet fileCabinet,
	FileInfo file,
	params DocumentIndexField[] indexFields
)

Parameters

fileCabinet
Type: DocuWare.Platform.ServerClientFileCabinet
The file cabinet.
file
Type: System.IOFileInfo
The file.
indexFields
Type: DocuWare.Platform.ServerClientDocumentIndexField
The index fields.

Return Value

Type: Document
The uploaded document's metadata.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FileCabinet. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
The document is uploaded as optimal as possible. That is, if the document is small enough it is uploaded with a single request. If the file is large, the upload is done chunkwise.
See Also