The /file/filter Robot
We let you reject, or direct files against different encoding Steps.
/file/filter Robot is a gatekeeper that can direct files to different encoding Steps based on your conditions.
||(required) String / Array of Strings||
GeneralSpecifies which Step(s) to use as the input to this Robot.
Special Step namesA special Step name is
Providing several Steps as inputYou can add arrays to
Step bundlingSome Robots can gather several Step results for a single invocation. For example, the /file/compress Robot would normally create one Zip file for each file passed to it. If you'd set
This is a crucial parameter for the /video/adaptive Robot, otherwise you'll generate 1 playlist for each viewing quality.
Keep in mind that all input Steps must be present in your Template. If one of them is missing, no result is generated because the Robot waits indefinitely for all input Steps to be finished.
Group by originalSticking with the /file/compress Robot example, you can set
DemoSee a demo for the
||Array of Arrays||
||Files that match at least one requirement will be accepted, or declined otherwise. Example:
||Array of Arrays||
||Files that match at least one requirement will be declined, or accepted otherwise. Example:
||Specifies the condition type according to which the members of the
||If this is set to
||This is the error message shown to your users (such as by Uppy) when a file is declined and
Our /file/filter Robot can be used in combination with other Robots, to create powerful workflows unique to your use case. Here are a few example scenarios that you can try live on our website:
- Automatically decompress uploaded archives
- Filter out videos that are larger than 20MB or longer than 5 minutes
- Filter out all audio files with a bit rate lower than 64K
- Filter out files that are smaller than 1KB
- Filter out anything other than image files
- Filter out anything other than video or image files
- Only resize larger images when resizing files
- Reject videos that do not have an audio track
- Import your Dropbox files to Transloadit for encoding
- Resize and apply transparency, based on a clipping path inside an image
- Properly preserve transparency across image types
- Burn subtitles into a video
- Extract audio from video files
Blog posts about the /file/filter Robot
We wrote the following posts about the /file/filter Robot on our blog:
- Performance Upgrades March 4, 2015
- Kicking Transloadit Into Gear for the New Year February 1, 2015
- Two New Robots and More Features March 30, 2012
- New /file/filter Robot Released December 6, 2011
Did you know?
You can easily combine Robots to create powerful workflows, unique to your business.
This is the power of Transloadit.