The value of :original variable when using import from http robot

Archived from the Transloadit support forum. Originally posted on January 3, 2014; details may be outdated, see our docs for current behavior. Original thread

Can I use “:original” variable to refer to a file imported from http?

Like this:

{
  "steps": {
    "import": {
      "robot": "/http/import",
      "url": "http://my/file"
    },
    "iphone": {
      "use": ":original",
      "robot": "/video/encode",
      "preset": "iphone"
    }
  }
}

Thank you!

{
  "steps": {
    "myimport": {
      "robot": "/http/import",
      "url": "http://my/file"
    },
    "iphone": {
      "use": "myimport",
      "robot": "/video/encode",
      "preset": "iphone"
    }
  }
}

?

Hi Sergey,

Not sure if I completely understand but :original only refers to uploaded files as they do not belong to a step, we handle that. For imported files you can use the step name.

Let me know if you need more help!

Kind regards,

Kevin

Ok, this makes sense. This works! Thank you!

Great, closing this then!