A Large Object is arbitrary file content (an image, a data blob, a downloadable asset) stored and managed by Elements as a first-class database record, with its own id, permissions, and lifecycle. It’s the mechanism behind the Large Object section of the admin console (see CMS Feature Overview) and is also fully available over the REST API, which makes it a convenient place to store game assets you want to manage the same way you manage other Elements data: live ops content, A/B test variants, User-uploaded images, and similar.
Note
This is a different system from Element Static Content and Dashboard UI Plugins. Large Object content is stored as database content addressed by object id, not as a file tree tied to an Element or an Application.
The Large Object Model #
| Field | Description |
|---|---|
id | Unique identifier for the object. |
path | A logical path used for search/organization. If you don’t supply one when creating an object, an automatic path is generated from the object’s MIME type and a random id. |
mimeType | The MIME type of the stored content. |
state | Either EMPTY (created but no content uploaded yet) or UPLOADED (content has been written). |
accessPermissions | Read, write, and delete permissions for the object. See below. |
lastModified | Timestamp of the last Metadata or content change. |
originalFilename | The filename supplied at upload time, if any. |
url | Computed, publicly reachable URL for the object’s content. Not stored; assembled on read. See Serving Content below. |
Object content itself (the actual bytes) is stored separately from the Metadata above, in MongoDB GridFS, keyed by the object’s id.
Access Permissions #
Each Large Object carries its own accessPermissions, with a separate permission for reading, writing, and deleting the object. Each of these can either be a wildcard, meaning “anyone,” or scoped to specific subjects. A publicly downloadable game asset would have a wildcard read permission with write and delete restricted; a private User upload would have all three restricted.
Access Levels #
| Access level | Capabilities |
|---|---|
| Anonymous | Can list objects and read Metadata. Can read an object’s content only if its read permission is a wildcard. Create, update, delete, and non-public reads are all forbidden. |
| User | Can read, update, and delete objects it has been granted permission for, per that object’s accessPermissions. Cannot create new Large Objects; creation is Superuser-only. |
| Superuser | Full create, read, update, and delete access to any object, plus the ability to create an object by fetching content from a URL server-side rather than uploading it directly. |
REST API #
| Method | Path | Description |
|---|---|---|
POST | /large_object | Creates a new Large Object record (Metadata only; content is uploaded separately). Superuser only. |
POST | /large_object/from_url | Creates a new Large Object by having Elements fetch content from a supplied URL server-side. Superuser only. |
PUT | /large_object/{id} | Updates an object’s Metadata and/or access permissions. |
PUT | /large_object/{id}/content | Uploads (or replaces) an object’s content as a multipart request body. |
GET | /large_object/{id} | Gets a single object’s Metadata. |
GET | /large_object?offset=&count=&search= | Lists objects, paginated, optionally filtered by a search term matched against path and mimeType. |
DELETE | /large_object/{id} | Deletes an object’s Metadata and content. |
Serving Content #
A Large Object’s public url field is assembled as the configured CDN origin plus /object/{id}:
{dev_getelements_elements_cdn_url}/object/{id}
dev_getelements_elements_cdn_url is the same CDN origin variable described in Configuring External URLs for Deployment. Requests to this endpoint are resolved through the same access-level rules described above (so a private object still returns 403 to an unauthorized caller), and support:
- Conditional requests via
ETag/If-None-Match, computed from the object’s id and last-modified time. Cache-Control: public, max-age=...(using thedev.getelements.elements.cdn.public.max.ageattribute, default 300 seconds) when the object’s read permission is a wildcard, andprivate, no-storeotherwise.- A
?download=truequery parameter, which sendsContent-Disposition: attachmentinstead of the default inline disposition.
Events #
Large Object creation, updates, and deletion publish events that an Element can subscribe to, the same way most other data types in Elements do. See the 3.9 release notes for background on this event coverage.

