File Service
This service is intended for blob storage and can store different files as binary data and metadata.
Upload a new file
const fileMetaData = await exh.files.create('myRepport.pdf', myBuffer, {
tags: ['ecg-report']
});File Metadata
Field
Type
Description
{
"name": "myReport.pdf",
"mimetype": "application/pdf",
"creatorId": "j49fd3h65j6sad89fgy9o8ds",
"size": 500,
"tags": [
"ecg-report"
],
"tokens": [
{
"token": "507f191e810c19729de860ea-149fdc4c-83ff-4a18-a54c-e2ab6a0d067e",
"accessLevel": "full"
}
],
"creationTimestamp": "2023-02-09T11:03:27.179Z",
"updateTimestamp": "2023-02-09T11:03:27.179Z",
}Monitoring a file upload
Retrieving a file
Retrieving data
Retrieving metadata
Deleting a file
File Tokens
Token Object
Field
Type
Description
Permissions
Access level
Description
Adding new tokens to a file
Removing tokens
List uploaded files
Settings
Example settings
Properties
disableForceDownloadForMimeTypes
Retrieve the settings
Update the settings
Last updated