uploadFile

Saves a Base64 encoded file to the default upload folder or to a known folder.

The default upload folder is UploadEBS, unless configured differently in the Web.config file (<add key="UploadFolder" value="~/Uploads" />).

Syntax

Copy
function uploadFile(options : IEbsUploadFileOptions, base64FileContent : string): any;
 
Parameter Type Description
options IEbsUploadFileOptions Name and location of the file to be uploaded.
base64FileContent string Contents of the file encoded using the Base64 scheme.

Type Aliases

Return Value

Returns a JSON object detailing the file upload with the following structure:

Copy
{
    "Name": "backup.pdf",
    "RealName": "backup_65d697c9-ab55-4737-a720-79c031867cc1.pdf",
    "IsSuccess": true,
    "Message": null,
    "ClientScript": null,
    "Serialized": null,
    "ErrorCode": 0,
    "UIResult": null
}

Examples