getUrl #
Gets a public URL for an uploaded file.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_plugin/s3/files/<fileKey>
Method: GET
Other protocols #
{
"controller": "s3/file",
"action": "getUrl",
"fileKey": "xen/<uuid>-headcrab.png"
}
Arguments #
fileKey
: file key in S3 bucket
Response #
Returns an object containing the file public URL.
{
"status": 200,
"error": null,
"action": "getUrl",
"controller": "s3/file",
"requestId": "<unique request identifier>",
"result": {
"fileUrl": "https://s3.eu-west-3.amazonaws.com/..."
}
}
Possible errors #
Edit this page on Github(opens new window)