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

Started by sergey4 replies24 views
sergeyOriginal post
#1

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!

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

?

kvzTransloadit team
#3

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

sergey
#4

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

tim-kos
#5

Great, closing this then!