File Management Service
Trillo Workbench provides a restful file management service and SFTP. In addition to it, it provides a complete application for files management including its UI.
Last updated
Trillo Workbench provides a restful file management service and SFTP. In addition to it, it provides a complete application for files management including its UI.
Last updated
The following diagram shows file management related components of Trillo Workbench.
Trillo Workbench provides a restful service to upload, download files. It also provides APIs to delete, move, copy files and folders.
Trillo Workbench incorporates a SFTP server for file transfer.
Trillo Workbench database caches the folders and files hierarchy for logical views and high performance.
Access control rules (RBAC) are stored in the Trillo WOrkbench Database.
Trillo File Manager is complete product, including UI, for managing files stored on the cloud storage buckets. It is a part of the Trillo Workbench, and also available as a standalone product. It is similar to DropBox or Box. It features:
Folders and files management using UI. A few examples are as follows:
Create folder hierarchy.
Upload one or more files.
Move, copy, delete, and rename files.
Versioning of files.
Sharing of files.
Download one or more files.
SFTP (secure using public/private key pairs).
APIs for file transfer and managing folders and files (move, delete, rename, copy, paste, etc.)
See the document Trillo File Manager Documentation for more details of the Trillo File Manager.
The internal service that supports file management APIs is called Folder Service. This section discusses a few examples of its APIs.
Uploading a file to cloud storage bucket uses more than one APIs. The are listed in the order of the control flow. Each API assumes that access token is passed as Authorization header.
Retrieve Signed URL (for upload).
Upload File Using Signed URL - using multipart mime.
Save File Object - it creates a record for the uploaded file in the database (for caching and access control rules).
Example APIs for each of the above steps are shown below.
End-point:
Body:
Response:
End-point:
Header:
Body:
Response:
This API creates a database record corresponding to the file.
End-point:
Body:
Response: It returns the file object created in the database as JSON. An example is shown below.
A client obtains a signed URL to download a file from the bucket.
Endpoint:
Body:
Response:
A client such as browser can download the file using a signed URL.
We discussed file upload and download APIs above. They provide file transfer feature using HTTPs. In addition to these APIs, there are other APIs to perform operations on folders and files - such as rename, delete, copy, paste, delete, etc. Refer to APIs reference guide for the details of these APIs.