Docs Menu

Configure File Metadata

On this page

  • Overview
  • Procedure
  • Navigate to the File in the File Tree
  • Add a New Attribute
  • Select the Attribute Type and Value
  • Pull Your App's Latest Configuration Files
  • Add Attributes to the Metadata Configuration File
  • Import the File Metadata Configuration

You can configure a file's metadata attributes to describe aspects of the file, such as its content type, language, or encoding. You can also use metadata attributes to configure the CDN's caching behavior and specify how clients should handle files when they access them.


If you do not specify a Content-Type metadata attribute for a hosted file, MongoDB Realm will attempt to automatically add a Content-Type attribute to it based on the file extension.

For example, Realm would automatically add the attribute Content-Type: application/html to the file myPage.html.

Give Feedback
MongoDB logo
© 2021 MongoDB, Inc.


  • Careers
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2021 MongoDB, Inc.