The database media storage method is deprecated as of Adobe Commerce and Magento Open Source 2.4.3.
Browser requests media - A page from the store opens in the customer’s browser, and the browser requests the media that is specified in the HTML.
System looks for media in file system - The system searches for the media in the file system and if found, passes it to the browser.
System locates media in database - If the media is not found in the file system, a request for the media is sent to the database that is specified in the configuration.
System locates media in database - A PHP script transfers the files from the database to the file system, and sent to the customer’s browser. The browser request for media triggers the script to run as follows:
On the Admin sidebar, go to Stores > Settings > Configuration.
In the left panel, expand Advanced and choose System.
In the upper-left corner, set Store Viewl to
Default Config to apply the configuration at the global level.
Expand the Storage Configuration for Media section and do the following:
Set Media Storage to
Set Select Media Database to the database you want to use.
Click Synchronize to transfer the existing media to the newly selected database.
Enter the Environment Update Time in seconds.
When complete, click Save Config.