Archived from the Transloadit support forum. Originally posted on July 31, 2012; details may be outdated, see our docs for current behavior. Original thread
I’ve got code like the following in my rails app.
transloadit = Transloadit.new(:key => @transloadit_config[:api_key], :secret => @transloadit_config[:api_secret])
transloadit.assembly(
{
:steps => {
:import => {
:robot => "/http/import",
:url => video_download_url
},
:encode_ipad => {
:robot => "/video/encode",
:preset => "ipad"
},
:export => {
:robot => "/s3/store",
:key => @transloadit_config[:aws_key],
:secret => @transloadit_config[:aws_secret],
:bucket => @transloadit_config[:aws_bucket]
}
},
:notify_url => "#{notify_url}"
}
).submit!
instead it shows up as this in params
{ "auth": {
"expires": "2012/07/31 20:14:12+00:00",
"key": "REDACTED"
}, “steps”: {
"export": {
"robot": "/s3/store",
"bucket": "****",
"secret": "REDACTED",
"key": "REDACTED"
},
"import": {
"url": "******",
"robot": "/http/import"
},
"encode_ipad": {
"preset": "ipad",
"robot": "/video/encode"
}
}, “notify_url”: “******” }
and it hits my notify url with the payload but it is not telling me about the final location on the aws… the results show that it uploaded
Results
encode_ipad
Name Type Size
1 c454098b-818c-49cd-abc6-c2a02ddb18a4.mp4 video 368 KB Details | Download
http://tmp.transloadit.com.s3.amazonaws.com/REDACTED
But I want this to be my amazon bucket…
Am I doing something wrong here where I need to be using two templates to get the order proper?