Archived from the Transloadit support forum. Originally posted on November 13, 2013; details may be outdated, see our docs for current behavior. Original thread
Just last one step is sent to amazon s3, why???
<!-- We initialize the Transloadit plugin here →
<script type=“text/javascript”>
$(function() {
// We reference our html form here
$(‘#produtoForm’).transloadit({
// We want to wait for all encodings to finish before the form is submitted. wait: true,
// The upload to Transloadit should start as soon as the user selects some files. triggerUploadOnFileSelection: true,
params: {
auth: {
// This is your API key.
key: "REDACTED"
},
// Our assembly instructions just contain two steps for now. You can name the steps whatever you want.
steps: {
jpg_thumb: {
use: ":original",
robot: "/image/resize",
width: 75,
height: 75,
resize_strategy: "pad",
background: "#ff0000",
format: "jpg"
},
png_with_watermark: {
use: ":original",
robot: "/image/resize",
width: 125,
height: 125,
format: "png",
watermark_url: "https://transloadit.com/img/logo.png",
watermark_position: "bottom-right",
watermark_size: "10%"
},
original_in_sepia_and_rotation: {
use: ":original",
robot: "/image/resize",
width: 125,
height: 125,
sepia: 80,
rotation: 15
}, "export": {"robot": "/s3/store","key": "REDACTED","secret": "REDACTED"bucket": "mdmfotoproduto"
}
}
}
});
});
</script>