ebs.upload

Uploads a file to the specified upload folder.

HINT  
You may want to configure File Type Upload Control and/or File Upload Malware Scanning to make sure that the files you upload are the correct type and malware free.

Syntax

Copy
ebs.upload(fileContentBase64: string, options: string | IEbsUploadOptions, callback: any, errorCallback: any): void

 

Parameter Description
fileContentBase64 The base64 encoded representation of the file to be uploaded.

options

Additional parameters, such as:

  • filename is the name of the file to be uploaded.
  • uploadLocation is the location of the folder where you want to upload the file. Use the following syntax for uploadLocation: “entity/entity_name”, where entity_name is the name of the entity for which you defined an UploadFolder in the EbsMetadata.Entity table.
NOTE  

Response

The response indicates the result of the code execution, depending on the endpoint's function.

Examples