Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 1.09 KB

File metadata and controls

68 lines (48 loc) · 1.09 KB
code type title
true
page
validate

validate

Validate and persist a previsously uploaded file.

::: warning 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