class Marten::Conf::GlobalSettings::MediaFiles

Overview

Allows to configure media files-related settings.

Defined in:

marten/conf/global_settings/media_files.cr

Instance Method Summary

Instance Method Detail

def root : String #

Returns the absolute path where media files will be persisted.


[View source]
def root=(dir : Path | String | Symbol | Nil) #

Allows to set the absolute path where collected media fiels will be persisted.


[View source]

Returns the ID of the storage used to collect and persist media files.


[View source]
def storage=(storage : Core::Storage::Base | Nil) #

Allows to set the the storage used to collect and persist media files.


[View source]
def url : String #

Returns the base URL to use when exposing media file URLs.


[View source]
def url=(url : String) #

Allows to set the base URL to use when exposing media file URLs.


[View source]