Official Plugins (Kuzzle v2.x)
S3 v2.x
2

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 #

URL: http://kuzzle:7512/_plugin/s3/upload/<fileKey>
Method: PUT

Other protocols #

{
  "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
{
  "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 #