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 #
fileKey
: file key in S3 bucket
Response #
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/..."
}
}
Possible errors #
Edit this page on Github(opens new window)