cms

How to make Sitecore store media as database records completely

By default, Sitecore stores media assets in binary format in the database. We just need to make sure 02 Sitecore settings (normally they’re in \App_Config\Sitecore.config) as-are via /sitecore/admin/ShowConfig.aspx:

  • Media.UploadAsFiles = false
    • UploadAsFiles_0
  • Media.DisableFileMedia = false
    • Media.UploadAsFiles

However, it is NOT working as expected. Users will upload media as files rather than database records if they check Upload as files checkbox whilst they’re using “Upload files (advanced)” option which is shown below:

uploadasfiles

Per my search, I suppose that there is one more step to make Sitecore store media as database records completely: hide Upload as files checkbox.

SOLUTION: set value of Upload.UserSelectableDestination Sitecore setting to false (normally it’s in \App_Config\Sitecore.config)

UploadAsFiles_1

uploadasfiles2

REFERENCES

Advertisement

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.