Skip to content

Create File Upload URL



wss create_files

The create_files request will store the files in the system and return the upload_url and _id keys.

Array of files:

NameTypeDescription
namestringFile name
sizenumberFile size
content_typestringFile content type
NameTypeDescription
filesarray[object]Saved file objects

The _id field as the file identifier in the system and upload_url for uploading the file to the system on the client.

{
"request": {
"create_files": [
{ "name": "File_1.png", "size": 240, "content_type": "image/png" },
{ "name": "File_2.jpeg", "size": 760, "content_type": "image/jpeg" }
],
"id": "RequestId"
}
}
{
"response": {
"id": "RequestId",
"files": [
{
"_id": "63077ad836b78c3d82af0812",
"name": "File_1.png",
"size": 240,
"content_type": "image/png",
"upload_url": "https://...."
},
{
"_id": "63077ad836b78c3d82af0813",
"name": "File_2.jpeg",
"size": 760,
"content_type": "image/jpeg",
"upload_url": "https://...."
}
]
}
}