Configure the File Upload Location

The file upload location provides storage for applications that require users to upload or download files (documents, images, etc.). The FintechOS Platform supports the Azure Blob and Amazon S3 Buckets storage providers for storing the uploaded or generated user files.

Use Azure Blob Storage for File Uploads

  1. By default, a private container named uploadebs should be set up in your Azure storage account. If you don't have one or if you wish to use a different container, create a new container.
  2. In the Configuration Manager, edit the following key:
    Key PathKey NameKey Value
    kv/<environment>/<application>/app-settingsFtosAzureBlobStorageOptions
    Copy
    {
      "ConnectionString": "DefaultEndpointsProtocol=https;AccountName=myAccountName;AccountKey=myAccountKey==;EndpointSuffix=core.windows.net",
      "RootContainerName": "uploadebs"
    }

    where:

    • connectionString is the connection string the platform is using to connect to an Azure Blob container;
    • rootContainer is the root container name where the user files will be stored (by default uploadebs).
    HINT  
    The connection string can be obtained in Azure from the Access Keys section of the storage account.

Use Amazon S3 Buckets for File Storage

In the Configuration Manager, edit the following key:

Key Path Key Name Key Value
kv/<environment>/<application>/app-settings AmazonS3StorageOptions
Copy
{
  "AccessKeyId":"<access_key>",
  "SecretAccessKey":"<secret_key>",
  "RootBucketName":"<bucket_name>",
  "Region":"<aws_region>"
}

where:

  • AccessKeyId and SecretAccessKey are used by FTOS to sign the requests made to AWS. For more information, see Access Keys (Access Key ID and Secret Access Key).
  • RootBucketName is the root bucket name where the user files will be stored.
  • Region is the AWS region. For a complete list of available regions, see the Amazon documentation, section Regions, Availability Zones, and Local Zones. The region attribute must have one of the values from the column "Region". E.g.: <aws region="eu-central-1"></aws>