Create File Upload URL
Description
Section titled “Description”wss create_files
The create_files
request will store the files in the system and return the upload_url
and _id
keys.
Request Parameters
Section titled “Request Parameters”Array of files:
Name | Type | Description |
---|---|---|
name | string | File name |
size | number | File size |
content_type | string | File content type |
Response Fields
Section titled “Response Fields”Name | Type | Description |
---|---|---|
files | array[object] | Saved file objects |
The
_id
field as the file identifier in the system andupload_url
for uploading the file to the system on the client.
Example
Section titled “Example”{ "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://...." } ] }}
See Also
Section titled “See Also” DataBase Records Collection of complete objects stored in the database.