Storage
The Storage Activity allows you to perform two operations: creating a folder and uploading a file.
Make a Folder
Creates a folder in the specified directory. If the folder name is left blank, the folder will be created in the root directory.
Property | Description | Required | Default |
---|---|---|---|
Folder Name | Name of the folder to be created. | Yes | Root Directory |
Response
Field | Description |
---|---|
message | Status message confirming the directory creation. |
{
"result": {
"message": "Directory \"folder_name\" created successfully."
}
}
Upload File
Uploads a file to the specified directory. If the folder path is left blank, the file will be saved to the root location.
Property | Description | Required | Default |
---|---|---|---|
File Content | URL, content, or Base64-encoded data for the file. | Yes | - |
File Name | Name of the file. | Yes | - |
Folder Path | If left blank, the file will be saved to the root location. | No | Root Directory |
Overwrite | Checkbox option to overwrite the existing file with the same name. | No | - |
Shareable Link | This option is a toggle switch that, when enabled, generates a link to share the file | No | False |
Expire In | This option allows you to set an expiration time for the link, ranging from 1 minute to 30 days. This gives you control over how long the link remains active, whether for temporary or extended sharing purposes | No | 60 minutes |
Response
Field | Description |
---|---|
message | Status message confirming the upload. |
path | The path where the uploaded file is stored. |
shareable_link (Optional) | A URL to access the uploaded file. (This will only be available if you enabled Shareable Link while uploading the file ) |
{
"result": {
"message": "File uploaded successfully",
"path": "file_name.json",
"shareable_link": "http://link_for_uploaded_file.com"
}
}
Advanced Options
Property | Description | Required | Default |
---|---|---|---|
Maximum Activity Completion Timeout (in seconds) | The maximum time to wait for the activity to complete. | No | 60 |
Max Tries | The maximum number of times the activity should be retried in case of failure. | No | 1 |
Wait Between Retries | Constant factor by which the time delay between retry attempts increases after each failure. | No | 2 |
Interval (in seconds) | Minimum time delay between retries. | No | 1 |
Max Interval | The maximum interval between retries in seconds. | No | 100 |