Signed Urls

If you are using an alternative storage solution (e.g. Google, Rackspace, etc), Blitline supports the use of signed_urls. Many of these services, offer the ability to sign a url for uploading, which can then be used by Blitline for uploading your final images to them.

The benefit of this is that you do not need to give Blitline any permissions to your services. The signed url contains all the information necessary.

🚧

You must be able to generate a signed_url on your own. We (Blitline) cannot generate it for you. Most modern SDKs for the various services allow for creation of these signed_urls

USING ON BLITLINE

To use these signed urls with Blitline, the signed_url sits within an signed_destination like this:

{
  "application_id": "YOUR_APP_ID",
  "src": "http://www.google.com/logos/2011/houdini11-hp.jpg",
  "postback_url": "YOUR_WEBSITE_URL",
  "functions": [
    {
      "name": "blur",
      "save": {
        "image_identifier": "YOUR_IMAGE_IDENTIFIER",
        "signed_destination": {
          "signed_url": "https://storage.googleapis.com/blitline-test/foo.j[email protected]developer.gserviceaccount.com&Expires=1314370741&Signature=oPLJFBWQG9mLa7Uo%2BfQ...HuFvFaOpH7NmCT5XDHEw%3D%3D",
          "headers": {
            "Content-Type": "image.jpg"
          }
        }
      }
    }
  ]
}

🚧

Remember

If you signed a url with headers, you must include those same headers in the signed_destination


Did this page help you?