Official Plugins (Kuzzle v1.x)
S3 v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

getUrl #

Gets a public URL for an uploaded file.


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/_plugin/s3/files/<fileKey>
Method: GET

Other protocols #

Copied to clipboard!
{
  "controller": "s3/file",
  "action": "getUrl",

  "fileKey": "xen/<uuid>-headcrab.png"
}

Arguments #


Response #

Returns an object containing the file public URL.

Copied to clipboard!
{
  "status": 200,
  "error": null,
  "action": "getUrl",
  "controller": "s3/file",
  "requestId": "<unique request identifier>",
  "result": {
    "fileUrl": "https://s3.eu-west-3.amazonaws.com/..." 
  }
}

Possible errors #