return final S3 url in notification

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

How can I get the final S3 url in the notification JSON?

I can get it from the thumbnails, but not from the actual file.

Here’s my template:

{
  "steps": {
    "pdfthumb": {
      "use": ":original",
      "robot": "/document/thumbs",
      "result": true,
      "page": 1,
      "width": 75,
      "height": 75,
      "resize_strategy": "pad",
      "background": "#000000"
    },
    "encode": {
      "robot": "/video/encode",
      "preset": "ipad-high",
      "result": true
    },
    "videothumb": {
      "use": ":original",
      "robot": "/video/thumbs",
      "result": true,
      "count": 2
    },
    "export": {
      "use": [
        "pdfthumb",
        "encode",
        "videothumb"
      ],
      "robot": "/s3/store",
      "result": true,
      "key": "REDACTED",
      "secret": "REDACTED",
      "bucket": "spand"
    }
  }
}

Hi Jacob,

To export the original files, please also use :original in the export step:

    "export": {
      "use": [
        ":original",
        "pdfthumb",
        "encode",
        "videothumb"
      ],
      "robot": "/s3/store",
      "result": true,
      "key": "REDACTED",
      "secret": "REDACTED",
      "bucket": "spand"
    }

Hope this helps!

Kevin

Closing this for now. Please let us know in case you need more help here.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos