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

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,
	Document documentMetaData
)

Parameters

fileCabinet
Type: DocuWare.Platform.ServerClientFileCabinet
The file cabinet.
file
Type: System.IOFileInfo
The file.
documentMetaData
Type: DocuWare.Platform.ServerClientDocument
The document meta data. Currently only the fields are used.

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