# The file model

Source: https://developers.swell.is/backend-api/files/the-file-model

## Arguments

- `id` (objectId, auto): Unique identifier for the file
- `aliases` (array of String): An array of alternative names or aliases associated with the file.
- `chunk_size` (int, auto): The size of data chunks used during file upload.
- `content_type` (string): The MIME type or content type of the file.
- `data` (filedata): File content, base64-encoded when created or updated through the API.
- `date_created` (date, auto): The date and time when the file object was initially created.
- `date_uploaded` (date, auto): The date and time when the file was uploaded.
- `filename` (string): The name of the uploaded file.
- `height` (int): The height dimension of the file, applicable for image files.
- `length` (int, auto): The length or size of the file in bytes.
- `md5` (string, auto): The MD5 hash value of the file content.
- `metadata` (object): Arbitrary data for storing additional information about the file.
- `private` (boolean): Indicates the file is private and not served publicly from the CDN.
- `url` (string, auto): The URL providing direct access to the file.
- `width` (int): The width dimension of the file, applicable for image files.

## Example response

```json
{
    "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"
}
```
