Archived from the Transloadit support forum. Originally posted on January 3, 2013; details may be outdated, see our docs for current behavior. Original thread
I’m having trouble properly replaying an assembly. This is my code…
$request = $transloadit->request(array(
'method' => 'POST',
'path' => "/assemblies/{$image->assembly_id}/replay",
'reparse_template' => true
), false);
$response = $request->execute();
But this alters my template by adding..
"assembly_replay_import_profile_image_0": {
"robot": "/http/import",
"url": "http://tmp.transloadit.com.s3.amazonaws.com/REDACTED.jpeg",
"field": "profile_image"
},
And replacing all of my references to :original with assembly_replay_import_profile_image_0. This makes sense, since I’m no longer uploading an image. I’m just confused about how I can influence the template upon triggering the replay so that I can inform the import robot where the file is actually located as opposed to it just assuming. Surely I don’t need to maintain two templates, right?
Chris