---
schema_version: "1"
id: e70fb0d0558d96967af07967f31843e96f267c94250d8f3c471acf8cb1b0b6f7
title: ContentDownloadContext Enum
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_enum_Sfc_ContentDownloadContext.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_Sfc_ContentDownloadContext.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: b251b7a32ebd89ec31607ebbccbf7a88f6f5bc5d9926703d82197d828134c78f
description: This enum specifies the download context.
---
# ContentDownloadContext Enum

This enum specifies the download context.

## Usage

If the operationContext is CONTENT, CHATTER, DELIVERY, S1, or MOBILE, it can be used in a shepherd servlet as a query parameter. It’s possible for a user to change the query parameters. If a user enters a value other than CONTENT, CHATTER, DELIVERY, S1, or MOBILE, the value is treated as the default value CONTENT.

Users can’t set query parameters to REST\_API, SOQL, or RETRIEVE, so these values can be assumed to be accurate.

## Enum Values

The Sfc.ContentDownloadContext enum value identifies the content download context. The enum value is provided as a query parameter in the file download servlet. The following are the values of the Sfc.ContentDownloadContext enum.

| Value | Description |
| --- | --- |
| CHATTER | Download from Chatter. |
| CONTENT | Default value. Downloads from the Salesforce CRM Content product. |
| DELIVERY | Download of a content delivery. |
| REST\_API | Download from the Connect API (/connect/files/${fileId}/content endpoint). Used in both Android and iOS apps. |
| RETRIEVE | Retrieve VersionData from SObject API. |
| S1 | Download from Lightning Experience. |
| SOQL | Select VersionData from SOQL. |