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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s