The table 'media_storage_file_storage' is very big.

Can I truncate this table if I use "File System" as "Media Storage"?

2 Answers 2


As per this Doc I think you don't have to do anything. Just change the storage system and click on the Synchronize button below

Then also take a backup of the entire site and set-up on the local system and do it. And see if it working or not.

Thanks Happy Coding


Use a database for media storage

  1. On the Admin sidebar, go to Stores > Settings > Configuration.

  2. In the left panel, expand Advanced and choose System.

  3. In the upper-left corner, set Store View to Default Config to apply the configuration at the global level.

  4. Expand Expansion selector the Storage Configuration for Media section and do the following: enter image description here

    Advanced configuration - storage configuration for media Storage Configuration for Media (Database)

    Set Media Storage to Database.
    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.
  5. When complete, click Save Config.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.