Robots
Robots are features that perform specific tasks in your file processing pipeline. Think of them as Lego blocks that you can mix and match to build powerful file processing workflows.
Here's a simple example of how a Robot is defined in Assembly Instructions:
{
"steps": {
"resized": {
"robot": "/image/resize",
"use": ":original",
"width": 100,
"height": 100
}
}
}
As you can see, each Robot is referenced by its name (like /image/resize
) in the
Assembly Instructions. This is how you tell Transloadit which operations to perform on your files.
Processed files are available via temporary URLs for 24 hours before being automatically removed. To retain them, use a storage Robot, which is recommended for production use.