Archived from the Transloadit support forum. Originally posted on April 9, 2012; details may be outdated, see our docs for current behavior. Original thread
I want to have my transcoding job optionally export out to a second s3 bucket if a variable or parameter is passed in. I was thinking of passing in a whole extra export step based on client-side logic in as a param but didn’t want to store the s3 secret in the client side. I could stub out the extra import step in my template and use the params merged in from the client to somehow activate it, but the export robot won’t take an empty “use” parameter to start.
How can I either execute a step conditionally based on a param, or if I have to use the param merged from the client to do this, how can I keep some secret variables in the server template. I tried the “fields” property but that didn’t seem to work.