The media gallery of the Magento content editor only accepts a few image formats. Videos, PDF documents such as data sheets, SVG graphics or ZIP downloads have to be uploaded by other means. This module extends the media gallery with more file types and adds a page from which the storage can be managed without editing any content.
Features
- Upload of MP4 videos, PDF documents, SVG graphics, WebP images and ZIP archives in the media gallery of the content editor.
- Placeholder icons as thumbnails for these file types in the gallery.
- Inserting such a file into content adds a link to the file in the media folder, which keeps working when the store address changes.
- The file name is shown as a tooltip when hovering over a file in the gallery.
- New admin page Content > Elements > Storage with an “Open Storage” button that opens the media gallery for uploading, organizing and deleting files, without inserting anything into content.
Configuration
There are no settings. The additional file types can be uploaded right after installation. Access to the new storage page can be granted or denied in the user roles with the “Storage” permission.
Good to know
The module removes SVG from the list of file extensions that Magento blocks from upload. SVG files can contain scripts, so only let trusted admin users upload them.
Installation
Install the module with Composer in your Magento root directory:
composer require infrangible/m2-cms-storageThen enable it and update the store as described in the installation guide. Composer installs the required modules listed on this page automatically.