Log in
Model

Storage

Magento\Cms\Model\Wysiwyg\Images\Storage

What it does

This class manages the file storage for WYSIWYG editor images in Magento 2's CMS module.

Developers use it to handle image uploads, create/delete directories, generate thumbnails, and retrieve file/directory collections for the media browser in content editors.

It provides comprehensive file system operations with validation, permission checks, and integration with Magento's media storage system.

Public Methods

  • getDirsCollection()
  • getFilesCollection()
  • getCollection()
  • createDirectory()
  • deleteDirectory()
  • deleteFile()
  • uploadFile()
  • getThumbnailPath()
  • getThumbnailUrl()
  • resizeFile()
  • resizeOnTheFly()
  • getThumbsPath()
  • getSession()
  • getAllowedExtensions()
  • getThumbnailRoot()
  • isImage()
  • getResizeWidth()
  • getResizeHeight()
  • getCmsWysiwygImages()