Backend API

Arguments
idobjectIdauto

Unique identifier for the file

aliasesarray of String

An array of alternative names or aliases associated with the file.

chunk_sizeintauto

The size of data chunks used during file upload.

content_typestring

The MIME type or content type of the file.

datafiledata

File content, base64-encoded when created or updated through the API.

date_createddateauto

The date and time when the file object was initially created.

date_uploadeddateauto

The date and time when the file was uploaded.

filenamestring

The name of the uploaded file.

heightint

The height dimension of the file, applicable for image files.

lengthintauto

The length or size of the file in bytes.

md5stringauto

The MD5 hash value of the file content.

metadataobject

Arbitrary data for storing additional information about the file.

privateboolean

Indicates the file is private and not served publicly from the CDN.

urlstringauto

The URL providing direct access to the file.

widthint

The width dimension of the file, applicable for image files.

The file model
{
    "length": 6028032,
    "chunkSize": 261120,
    "filename": "image.jpg",
    "content_type": "image/jpeg",
    "date_created": "2024-01-03T09:22:39.192Z",
    "date_uploaded": "2024-01-03T09:22:40.032Z",
    "height": 2075,
    "md5": "ed8b7b4eea7b8d54662b86fd707f09f6",
    "url": "https://cdn.swell.store/6595275fc22a5b00127df144",
    "width": 3120,
    "id": "6595275fc22a5b00127df144"
}