Archived from the Transloadit support forum. Originally posted on October 4, 2013; details may be outdated, see our docs for current behavior. Original thread
How do I write the file/filter robot in php? I’m getting stuck at the square brackets…clearly a jv squad syntax issue!
'files'=>array(
robot=> "/file/filter",
declines=> array(
["${file.size}", ">", "20971520"],
["${file.meta.duration}", ">", "300"]
),
'error_on_decline'=> true
),