4.5.1 Upload Files to Storage
Upload one or more files into the local storage of MicroTx Workflows. These files are used for processing later by the File tool and by tasks, such as GenAI Ingestion tasks and Agentic Planner tasks.
The file storage is configured when MicroTx is installed based on the
information provided in the values.yaml file. See File System Storage Properties in MicroTx Installation and Configuration Guide.
Ensure that the MicroTx Workflows runtime user has read and write permissions on this folder.
Upload limits and restrictions
- Multipart upload limit is 32 MB by default.
- Path traversal is blocked; files cannot be stored outside the configured storage file path.
- Upload all types of files as no file-type or extension whitelist is enforced during upload.
- If you use the REST API call to upload files to storage,
POST /api/storage/upload, you must specify the server context path, such as/workflow-server/api/storage/upload.
After you upload the files to storage, you can use the uploaded files in
tasks. The following sample code demonstrates how you can use
pdfreference1.4.pdf, an uploaded file, in a GenAI Ingestion
task.
{
"name": "genai_ingestion",
"taskReferenceName": "genai_ingestion_ref",
"inputParameters":
{
....
"data":
{
"source": "local",
"filePath": "pdfreference1.4.pdf"
}
....
}
}
Parent topic: Manage File Storage