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.

validate #

Validate and persist a previsously uploaded file.

Without a call to the action, every file uploaded on a Presigned URL will be deleted after a TTL.


Query Syntax #

HTTP #

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

Other protocols #

Copied to clipboard!
{
  "controller": "s3/upload",
  "action": "validate",

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

Arguments #


Response #

Returns an object with the following properties:

  • fileKey: file key in S3 bucket
  • fileUrl: public file URL after successful upload
Copied to clipboard!
{
  "status": 200,
  "error": null,
  "controller": "s3/upload",
  "action": "validate",
  "requestId": "<unique request identifier>",
  "result": {
    "fileKey": "xen/<uuid>-headcrab.png", 
    "fileUrl": "https://s3.eu-west-3.amazonaws.com/..."
  }
}

Possible errors #