Log in
Model

Storage

Magento\MediaStorage\Model\File\Storage

What it does

This class manages media file storage synchronization in Magento 2, allowing media files to be stored either on the filesystem or in a database.

Developers use it to switch between storage types, synchronize media between storage systems, and retrieve storage configuration for scripts like get.php that serve media files.

Public Methods

  • getSyncFlag()
  • getStorageModel()
  • synchronize()
  • getScriptConfig()