Skip to main content

Files

InCountry Data Residency-as-a-Service provides a programmatic interface (REST API endpoints) to attach files to regular records and manage them.

The InCountry platform provides two types of file storages depending on your business demands:

  1. database storage

  2. object storage (S3)

The database storage is designed to store small files (15 megabytes and less) when their storage amount does not exceed several gigabytes, it’s effective for storing documents, scans of documents, emails, or notes.

Object storage (S3) is designed to store large files when their storage amount exceeds several terabytes. It’s effective for storing document libraries, video calls, or other media recordings.

Stored files are mapped to parent data records, so you can quickly and easily query the required records and all their related files from the InCountry platform.

Management of files is performed through InCountry REST API. There are two groups of endpoints that can manage attachments, as follows:

  1. endpoints accepting calls from the backend:

    1. Database (large object storage)

      1. upload attachments

      2. download attachments

      3. delete attachments

    2. AliCloud OSS

      1. upload attachments

      2. download attachments

      3. update attachments

      4. delete attachments

      5. query attachments

  2. endpoints accepting calls from the frontend:

    1. Database (large object storage)

      1. upload attachments

      2. download attachments

      3. delete attachments