Navigation

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.

Note

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

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