Link Search Menu Expand Document

Constructor: autoSaveSettings

Back to constructors index

Media autosave settings

Attributes:

NameTypeRequiredDescription
photosBoolOptionalWhether photos should be autosaved to the gallery.
videosBoolOptionalWhether videos should be autosaved to the gallery.
video_max_sizelongOptionalIf set, specifies a size limit for autosavable videos

Type: AutoSaveSettings

Example:

$autoSaveSettings = ['_' => 'autoSaveSettings', 'photos' => Bool, 'videos' => Bool, 'video_max_size' => long];