code | type | title |
---|---|---|
true |
page |
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. :::
URL: http://kuzzle:7512/_plugin/s3/upload/<fileKey>
Method: PUT
{
"controller": "s3/upload",
"action": "validate",
"fileKey": "xen/<uuid>-headcrab.png" }
fileKey
: file key in S3 bucket
Returns an object with the following properties:
fileKey
: file key in S3 bucketfileUrl
: 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/..."
}
}