Description
Downloads a file from the filestore service using its identifier and uploads it to a specified container in Azure Blob Storage. It supports optional metadata and API key authentication for the filestore.
Parameters
| Name | Type | Comments | |
|---|---|---|---|
| containerName | String | The name of the container that will contain the blob | |
| blobName | String, optional | The name of the blob when it arrives in Blob Storage. If not provided, the blob name will default to the file name as it exists in the filestore. N.B. If using pseudo-directories, the full path should defined here eg. "applications/1111-2222-3333-4444/attachments/images/my-image.jpg" | |
| filestoreId | String | The identifier of the file in the filestore | |
| filestoreApiKey | String, optional | The API key for the filestore, if required | |
| metadata | Object, optional | Metadata to associate with the blob in Azure Blob Storage | |
| tags | Object, optional | Tags to associate with the blob in Azure Blob Storage | |
| timeoutMs | Number, optional | Timeout in milliseconds before aborting the operation (default is 20000) | |
| authDetails | Object, optional | The authDetails set in the worker configuration to use. If not set the request will use the default authDetails | |
| authDetails.identifier | String | The identifier for the authentication details (used to select the correct connection string) | |
Example
{
"id": "123",
"jsonrpc": "2.0",
"method": "filestoreToBlobStorage",
"params": {
"containerName": "applications",
"blobName": "1111-2222-3333-4444/attachments/images/my-image.jpg",
"filestoreId": "00000000-0000-0000-0000-000000000000",
"metadata": { "fileUploaded": "2025-04-01T11:00:00.000Z" },
"timeoutMs": 30000,
"authDetails": {
"identifier": "my-storage-account"
}
}
}
