UploadFile

Description Uploads a document from the client to the specified database.
Method Type POST
URL api/dm/upload
Parameters
Name Type Description
- Request.File The document to upload.
CE (Optional) String

The Specified Content-Engine.

Possible values:

0: Default Content-Engine (default)

1: FileEngine

2: DatabaseEngine

OCR (Optional) Int

Specifies if OCR must be performed during upload or not, and also specifies the type of the OCR. Possible values:

-1: No OCR

0: OCR Plain Text

1: hOCR

lang (Optional) String Specifies the language for the OCR. By default, it’s “eng” for English.
dOrientation (Optional) Bool Specifies the orientation for the OCR. By default, it’s true.
Response Type JSON (JsonResult)
Return values

{

response (String)

}

On success: “600”

Otherwise, a relevant error code from Printer Driver HTTP Upload errors.

Programming notes

The API will automatically read the OCRDatabaseType value from the appsettings.json file, and decide if the OCR must be stored in the SQL, or in the ODBC database.

Example

None

Requirements