Archived from the Transloadit support forum. Originally posted on November 30, 2011; details may be outdated, see our docs for current behavior. Original thread
I’m a bit confused reading the doc on multi-file-type upload on how to modify this template so I can support multiple file types. I want images to be resized (working fine in the current template below), but PDF uploads to remain untouched and stored on S3.
How would I do that (without also storing the original image on S3)?
{ "steps": {
"thumb": {
"use": ":original",
"robot": "/image/resize",
"width": 100,
"height": 100,
"format": "png"
},
"export_thumb": {
"path": "docs/${file.original_id}_th.png",
"robot": "/s3/store",
"key": "",
"secret": "",
"bucket": "vfolio"
},
"big": {
"use": ":original",
"robot": "/image/resize",
"width": 800,
"height": 800,
"format": "png"
},
"export_big": {
"path": "docs/${file.original_id}.png",
"robot": "/s3/store",
"key": "",
"secret": "",
"bucket": "vfolio"
}
} }
thanks!