Media Gallery Folder

Add a custom folder to the Media Gallery.

Magento allows the media gallery access to the directory wysiwyg and catalog only. Unfortunately, other directories cannot be added easily, unless you create a module as explained in Modify media library folder permissions which is not suitable for most store owners.

We decided to close this problem by creating an interface where directories can be added easily to the Media Gallery.

Business Value

  • No development work required.
  • Practical for small businesses, which cannot afford expensive agency support.


  • Module can be disabled any time without touching the config.php file.
  • Add as many directories as you want.


  • Navigate to Stores > Configuration > Advanced > System > Media Gallery Folder
  • Enable the module
  • Add your directory ( relatively from pub/media ) and give it a label
  • Clear the cache
  • After that you should see the directory in your Media Gallery


  • Restrict directories to specific admin roles

System Requirements

  • Magento 2.4.3-p1 or higher
  • PHP 7.x



  • Stable version