KekUpload API
POST ~/c/{extension}
Create a new upload stream which you can upload to. See workflow for more information.
Params
extension
The extension which will later after uploading be used to be put after the hash in the Content-Disposition header. See extension for more information.Request
cURL
curl --request POST \
--data ""
--url ~/c/{extension}
Responses
200 - Ok
{
"stream": "{stream}"
}
400 - Bad Request
{
"generic": "PARAM_LENGTH",
"field": "EXTENSION",
"error": "EXTENSION must be in bounds 0-{config::EXTENSION_MAX_LENGTH}"
}
500 - Internal Server Error
{
"generic": "FS_CREATE",
"field": "FILE",
"error": "Error while creating file: {error}"
}