Brightspot CMS Developer Guide

File Storage


Most high-profile websites deliver binary files to the client, such as graphics, video, audio, and PDFs. Regardless of the file type, the minimal HTML pattern for delivering the files is one of the following:

<!-- internal image, video, or audio file -->
<img src="url-to-image.png" />
<video src="url-to-video.mpeg" />
<audio src="url-to-audio.mp3" />

<!-- external file -->
<a href="url-to-spec.pdf">Download the specification"</a>

(There are other attributes for the <img><video><audio>, and <a> tags.)

In the first three cases, the client renders or plays the media within the web page; in the last case, the client downloads the file external to the web page. In either case, at a minimum the client must receive the file’s URL, and the file must exist in the location implied by the URL. Through Interface StorageItem and associated interfaces and classes, Dari provides high-level functions for maintaining file URLs and locations, as well as other functions for file processing.

Previous Topic
Alterations
Next Topic
Creating StorageItems
Was this topic helpful?
Thanks for your feedback.
Our robust, flexible Design System provides hundreds of pre-built components you can use to build the presentation layer of your dreams.

Asset types
Module types
Page types
Brightspot is packaged with content types that get you up and running in a matter of days, including assets, modules and landing pages.

Content types
Modules
Landing pages
Everything you need to know when creating, managing, and administering content within Brightspot CMS.

Dashboards
Publishing
Workflows
Admin configurations
A guide for installing, supporting, extending, modifying and administering code on the Brightspot platform.

Field types
Content modeling
Rich-text elements
Images
A guide to configuring Brightspot's library of integrations, including pre-built options and developer-configured extensions.

Google Analytics
Shopify
Apple News